[root@localhost mysql]# service mysqld start
my_print_defaults: [Warning] World-writable config file '/etc/my.cnf' is ignored.
Starting MySQL.my_print_defaults: [Warning] World-writable config file '/etc/my.cnf' is ignored.
my_print_defaults: [Warning] World-writable config file '/etc/my.cnf' is ignored.
ERROR! The server quit without updating PID file (/usr/local/mysql/data/localhost.pid).
1. 一直提示这个错误,是因为配置文件有错误吗?
谢谢,大佬的回答。但是,我的问题还是有,依然是这个问题
这个是我配置文件有问题吗?我想不通。。
应该你的配置文件的权限设置有问题,https://www.cnblogs.com/hf8051/p/4991699.html
执行ls -l /etc/my.cnf查看你的文件权限,根据错误提示,应当是你的这个文件权限是world-writable,权限过大。所以调整一下。
具体报错要看错误日志,在你启动失败的时候,告诉你错误日志的位置了,打开看一下,应该就能定位问题了。