MySQL服务启不了
情况1:存在socket lock file root用户执行 # systemctl restart kymysql 时不报错,但服务也没启动,查看错误日志 cat /opt/KY/Softs/log/mysql/mysql-error.log ... 2021-06-18T01:28:47.783821Z 0 [Note] Server hostname (bind-address): '0.0.0.0'; port: 20001 2021-06-18T01:28:47.783838Z 0 [Note] - '0.0.0.0' resolves to '0.0.0.0'; 2021-06-18T01:28:47.783867Z 0 [Note] Server socket created on IP: '0.0.0.0'. 2021-06-18T01:28:47.783925Z 0 [ERROR] Another process with pid 2663 is using unix socket file. 2021-06-18T01:28:47.783932Z 0 [ERROR] Unable to setup unix socket lock file. 2021-06-18T01:28:47.783937Z 0 [ERROR] Aborting 解决办法: # 删除sock锁文件 rm -rf /opt/KY/Softs/mysql/var/mysql.sock.lock # 重启服务 systemctl restart kymysql 情况2:缺少lib包 roo……