请问linux下面mysql启动不了 my_print_defaults,该怎么办?

home/chnsys/cms/config/mysql.server: line 251: /home/chnsys/cms/mysql5.7.17/bin/my_print_defaults: cannot execute binary file
MySQL server PID file could not be found! [FAILED]
/home/chnsys/cms/config/mysql.server: line 251: /home/chnsys/cms/mysql5.7.17/bin/my_print_defaults: cannot execute binary file
Starting MySQL./home/chnsys/cms/mysql5.7.17/bin/mysqld_safe: line 516: /home/chnsys/cms/mysql5.7.17/bin/my_print_defaults: cannot execute binary file
/home/chnsys/cms/mysql5.7.17/bin/mysqld_safe: line 522: /home/chnsys/cms/mysql5.7.17/bin/my_print_defaults: cannot execute binary file
The server quit without updating PID file (/home/chnsys/cms[FAILED]7.17/data/localhost.localdomain.pid).

泛舟湖上清波郎朗
浏览 4886回答 2
2回答

千巷猫影

这个/etc/init.d/mysql这个MySQL的启动脚本,是你自己写的吧。想必,你的MySQL是使用源代码安装的。因为,错误提示:Starting MySQL Couldn't find MySQL manager or server(@bindir@/mysqld_safe)这样,你启动的时候,使用如下命令:cd <your MySQL install PATH>cd bin.mysqld_safe --user=mysql& #注意前面有个点

PIPIONE

磁盘满了吗?pid存在吗,有的话结束,还有那个socket文件存在没?
打开App,查看更多内容
随时随地看视频慕课网APP