轉載地址:http://www.idc.net/blog/index.php/3134 php
解決mysql unrecognized service錯誤 mysql
service mysql start出錯,mysql啓動不了,解決mysql: unrecognized service錯誤的方法以下: sql
[root@idc.net ~]# service mysql start
mysql: unrecognized service
[root@idc.net ~]# service mysql restart
mysql: unrecognized service .net
[root@idc.net ~]# rpm -q mysql 查詢發現mysql已經正常安裝
mysql-5.1.52-jason.1 rest
[root@idc.net ~]# /etc/rc.d/init.d/mysqld start 直接啓動沒問題
Starting mysqld: [ OK ] blog
[root@idc.net ~]# 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 get
[root@idc.net ~]# chkconfig mysqld on 設置mysql開機啓動 it
[root@idc.net ~]# chmod 755 /etc/rc.d/init.d/mysqld 修改mysqld執行權限 service
[root@idc.net ~]# service mysqld start 搞定
Starting mysqld: [ OK ]
[root@idc.net ~]# service mysqld start
Starting mysqld: [ OK ]
[root@idc.net ~]# service mysqld status
mysqld (pid 9487) is running… 權限