我在CentOS 6.x上安裝了一個星號服務器64bit 沒關係,但一週後我回來時無法訪問到網絡管理員區域。我安裝了一個星號服務器,但現在我無法訪問網站管理區
這是錯誤:
SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)::SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)::SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)::SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)::SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)::SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)::SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
誰能幫助我?謝謝!
嘗試連接到數據庫的manuell:mysql -S /var/lib/mysql/mysql.sock -u USERNAME -p並查看是否可以登錄。如果沒有發佈錯誤信息 –
謝謝! 好吧,我看到有一個與MySQL的問題!錯誤消息是: 錯誤2002(HY000):無法通過套接字'/var/lib/mysql/mysql.sock'連接到本地MySQL服務器(2) – Mirkolino
是 - 數據庫服務器未運行。如果你不能從服務器 –