原因:mysql.server里面这两行没有添加路径,添加路径后即可解决问题
之后又出现新的报错:
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,再次启动,成功。文章来源:https://www.toymoban.com/news/detail-784149.html
文章来源地址https://www.toymoban.com/news/detail-784149.html
到了这里,关于mysql启动Starting MySQL ERROR! Starting MySQL ERROR! Couldn‘t find MySQL server (/usr/local/mysql/bin/的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!