mysql启动Starting MySQL ERROR! Starting MySQL ERROR! Couldn‘t find MySQL server (/usr/local/mysql/bin/

原因:mysql.server里面这两行没有添加路径,添加路径后即可解决问题

mysql启动Starting MySQL ERROR! Starting MySQL ERROR! Couldn‘t find MySQL server (/usr/local/mysql/bin/之后又出现新的报错:

Starting MySQL.2023-11-23T17:38:37.571813Z mysqld_safe error: log-error set to ‘/var/log/mariadb/mariadb.log’, however file don’t exists. Create writable for user ‘mysql’.

 ERROR! The server quit without updating PID file (/data/mysql-5.7.27/data/localhost.localdomain.pid).

该报错原因为缺少log目录,所有的报错都可以根据报错提示进行解决。创建该目录,并赋予权限:

2,mkdir /var/log/mariadb

touch /var/log/mariadb/mariadb.log

chown -R mysql:mysql /var/log/mariadb/

/usr/local/mysql/support-files/mysql.server start

原文链接:https://blog.csdn.net/qq_45839663/article/details/127248445

3,再次启动,成功。

mysql启动Starting MySQL ERROR! Starting MySQL ERROR! Couldn‘t find MySQL server (/usr/local/mysql/bin/

本文来自网络,不代表协通编程立场,如若转载,请注明出处:https://net2asp.com/cf318e3b5e.html