在bash执行
"systemctl start mysqld"
提示:
“Job for mysqld.service failed because the control process exited with error code. See "systemctl status mysqld.service" and "journalctl -xe" for details.”
/var/lib/mysql权限问题。cd目录,执行以下,解决:
bash-4.2# setenforce 0 bash-4.2# chown -R mysql:mysql /var/lib/mysql bash-4.2# chmod -R 777 /var/lib/mysql bash-4.2# systemctl start mysqld.service bash-4.2# ps -ef |grep mysql
再执行:
systemctl start mysqld.service
运行啦
mysql 3476 1 0 09:49 ? 00:00:00 /usr/sbin/mysqld --daemonize --pid-file=/var/run/mysqld/mysqld.pid root 4190 32434 0 10:01 pts/0 00:00:00 grep --color=auto mysqld
标签:jdk1.8,202305280952,service,4.2,00,mysqld,mysql,报错,bash From: https://www.cnblogs.com/beesky520/p/17437838.html