linux下开启mysql服务报错~~~神通广大的大哥们帮我看看吧~ service mysql start。。。

/etc/init.d/mysql: line 260: my_print_defaults: command not found
/etc/init.d/mysql: line 263: my_print_defaults: command not found
/etc/init.d/mysql: line 270: @HOSTNAME@: command not found
/etc/init.d/mysql: line 279: @HOSTNAME@: command not found
/etc/init.d/mysql: line 292: cd: @prefix@: 没有那个文件或目录
Starting MySQLCouldn't find MySQL manager (@bindir@/mysqlmanager) or server (@bindir@/mysqld_safe)
/etc/init.d/mysql: line 270: @HOSTNAME@: command not found
/etc/init.d/mysql: line 279: @HOSTNAME@: command not found
Starting MySQL.Manager of pid-file quit without updating fi[失败]
我改了下配置文件 现在说pid-file出错了。。能否帮我解决下
最新回答
何必纠缠

2024-04-29 04:00:58

呵呵呵,这个/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& #注意前面有个点
沫小苼

2024-04-29 05:40:13

意思是说,你的配置文件的260行、263、270、279
292行改的有问题啊!用set number 显示行数!
吃素的蚊子

2024-04-29 05:43:53

这个服务脚本 里面的哪些参数应该没有配置正确或着没有配置,你可以找到指定的行 配置一下,然后试一试
姐与爱情水土不服

2024-04-29 04:16:48

你是用什么命令启动的?

你试一下打全路径的方式启动。这个好像是因为你在安装的时候并没有指定路径