service mysqld stop
Warning: World-writable config file '/etc/my.cnf' is ignored
MySQL manager or server PID file could not be found![FAILED]
/etc/my.cnf 權限為 777(-rwxrwxrwx),任何用戶可寫。MySQL 為安全起見**拒絕讀取**全局可寫配置文件,導致找不到 PID 文件路徑而停機失敗。
chmod 644 /etc/my.cnf
service mysqld stop # 成功
service mysqld start # 正常啟動
644:root 讀寫,組/其他唯讀root:root640 + 專用組所有 MySQL 讀取的配置文件(my.cnf、mysqld.cnf、include 文件)、SSL 憑證鑰匙、關鍵腳本,**嚴禁全局可寫**。