鍍金池/ 問答/Linux  數(shù)據(jù)庫/ centos執(zhí)行/bin/systemctl start mysql.servi

centos執(zhí)行/bin/systemctl start mysql.service沒有任何反應(yīng)

執(zhí)行

/bin/systemctl start mysql.service
/bin/systemctl restart mysql.service
service mysql restart
service mysqld restart

都沒有任何反應(yīng)
圖片描述

回答
編輯回答
涼汐

應(yīng)該是服務(wù)沒有注冊(cè)到吧!

2017年5月9日 02:18
編輯回答
空白格

看樣子像是服務(wù)安裝過又被清理了,確認(rèn)服務(wù)是否有效

2018年1月27日 22:31
編輯回答
苦妄

首先要確保mysql被yum正確安裝。在CentOS 7.x下,啟動(dòng)命令是:

systemctl restart mysql(d)

最后有沒有d我記不清了。

另外,一般startrestart是沒有結(jié)果直接返回的,要查看啟動(dòng)結(jié)果,可以用命令:

systemctl status mysql(d)
2017年8月18日 00:26