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