gpt4 book ai didi

mysql不想启动

转载 作者:塔克拉玛干 更新时间:2023-11-03 01:15:21 25 4
gpt4 key购买 nike

大家好,我正在尝试启动 mysql。之前一切正常,但现在当我这样做时:

service mysqld start

回答我:

Redirecting to /bin/systemctl start mysqld.service Job for mysqld.service failed because the control process exited with error code. See "systemctl status mysqld.service" and "journalctl -xe" for details.

所以我做了 systemctl status mysqld.service 和“journalctl -xe”

那个答案:

● mysqld.service - MySQL Server Loaded: loaded (/usr/lib/systemd/system/mysqld.service; enabled; vendor preset: disabled) Active: failed (Result: exit-code) since Tue 2018-10-23 14:28:27 CEST; 4min 47s ago Docs: man:mysqld(8) http://dev.mysql.com/doc/refman/en/using-systemd.html Process: 6943 ExecStart=/usr/sbin/mysqld $MYSQLD_OPTS (code=exited, status=1/FAILURE) Process: 6922 ExecStartPre=/usr/bin/mysqld_pre_systemd (code=exited, status=0/SUCCESS) Main PID: 6943 (code=exited, status=1/FAILURE) Status: "SERVER_BOOTING" Error: 13 (Permission denied)

Oct 23 14:28:25 localhost.localdomain systemd1: Starting MySQL Server... Oct 23 14:28:27 localhost.localdomain systemd1: mysqld.service: Main process exited, code=exited, status=1/FAILURE Oct 23 14:28:27 localhost.localdomain systemd1: mysqld.service: Failed with result 'exit-code'. Oct 23 14:28:27 localhost.localdomain systemd1: Failed to start MySQL Server.

我明白了......需要帮助

我执行的最后一个命令是:(如果有帮助的话)

npm install http

我正在用 node.js 和 socket.io 聊天

这里有更多我不明白的细节^^ here

最佳答案

可以通过命令查看/var/lib/mysql目录的权限

ls -la/var/lib |grep mysql

输出应该是这样的

drwxr-xr-x 24 mysql mysql 4096 Aug 25 10:54 mysql

如果你会看到

drwxr-xr-x 24 root root 4096 Aug 25 10:54 mysql

然后你应该通过命令改变所有权:chown -R mysql:mysql/var/lib/mysql

关于mysql不想启动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52949323/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com