本文介紹了無(wú)法在 ubuntu 中啟動(dòng) mysql 服務(wù)器的處理方法,對(duì)大家解決問(wèn)題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)吧!
問(wèn)題描述
限時(shí)送ChatGPT賬號(hào)..
運(yùn)行命令后mysql -v
在 Ubuntu 中,我收到以下錯(cuò)誤:
After running the command
mysql -v
in Ubuntu, I am getting the following error:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
推薦答案
我認(rèn)為這是因?yàn)槟褂玫氖强蛻舳塑浖皇欠?wù)器.
I think this is because you are using client software and not the server.
mysql
是客戶端mysqld
是服務(wù)器
mysql
is clientmysqld
is the server
試試:sudo service mysqld start
要檢查服務(wù)是否正在運(yùn)行,請(qǐng)使用:ps -ef |grep mysql |grep -v grep
.
To check that service is running use: ps -ef | grep mysql | grep -v grep
.
卸載:
重新安裝:
<小時(shí)>
在執(zhí)行此操作之前備份整個(gè)文件夾:
Backup entire folder before doing this:
這篇關(guān)于無(wú)法在 ubuntu 中啟動(dòng) mysql 服務(wù)器的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!
【網(wǎng)站聲明】本站部分內(nèi)容來(lái)源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問(wèn)題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請(qǐng)聯(lián)系我們刪除處理,感謝您的支持!