首页 > 数据库技术 > 详细

service mysql start出错,mysql启动不了,解决mysql: unrecognized service错误

时间:2014-05-08 18:38:54      阅读:524      评论:0      收藏:0      [点我收藏+]

service mysql start出错,mysql启动不了,解决mysql: unrecognized service错误的方法如下:

[root@ctohome.com ~]# service mysql start
mysql: unrecognized service
[root@ctohome.com ~]# service mysql restart
mysql: unrecognized service

[root@ctohome.com ~]# rpm -q mysql 查询发现mysql已经正常安装
mysql-5.1.52-jason.1

[root@ctohome.com ~]# /etc/rc.d/init.d/mysqld start 直接启动没问题
Starting mysqld: [ OK ]


[root@ctohome.com ~]# ls /etc/rc.d/init.d/mysqld -l
-rwxr-xr-x 1 root root 5509 Dec 18 02:31 /etc/rc.d/init.d/mysqld

[root@ctohome.com ~]# chkconfig mysqld on 设置mysql开机启动

[root@ctohome.com ~]# chmod 755 /etc/rc.d/init.d/mysqld 修改mysqld执行权限

[root@ctohome.com ~]# service mysqld start 搞定
Starting mysqld: [ OK ]
[root@ctohome.com ~]# service mysqld start
Starting mysqld: [ OK ]
[root@ctohome.com ~]# service mysqld status
mysqld (pid 9487) is running...

service mysql start出错,mysql启动不了,解决mysql: unrecognized service错误,布布扣,bubuko.com

service mysql start出错,mysql启动不了,解决mysql: unrecognized service错误

原文:http://www.cnblogs.com/xcxc/p/3715561.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!