service mysql start出錯,mysql不能啟動,解決mysql: unrecognized service錯誤
service mysql start出錯,mysql啟動不了,解決mysql: unrecognized service錯誤的方法如下:
[root@downcc.com ~]# service mysql start
mysql: unrecognized service
[root@downcc.com ~]# service mysql restart
mysql: unrecognized service
[root@downcc.com ~]# rpm -q mysql 查詢發(fā)現(xiàn)mysql已經(jīng)正常安裝
mysql-5.1.52-jason.1
[root@downcc.com ~]# /etc/rc.d/init.d/mysqld start 直接啟動沒問題
Starting mysqld: [ OK ]
[root@downcc.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@downcc.com ~]# chkconfig mysqld on 設(shè)置mysql開機(jī)啟動
[root@downcc.com ~]# chmod 755 /etc/rc.d/init.d/mysqld 修改mysqld執(zhí)行權(quán)限
[root@downcc.com ~]# service mysqld start 搞定
Starting mysqld: [ OK ]
[root@downcc.com ~]# service mysqld start
Starting mysqld: [ OK ]
[root@downcc.com ~]# service mysqld status
mysqld (pid 9487) is running...
關(guān)鍵詞:mysql
閱讀本文后您有什么感想? 已有 人給出評價!
- 1
- 5
- 2
- 3
- 1
- 60