2016-05-12 59 views
0

我在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) 

誰能幫助我?謝謝!

+0

嘗試連接到數據庫的manuell:mysql -S /var/lib/mysql/mysql.sock -u USERNAME -p並查看是否可以登錄。如果沒有發佈錯誤信息 –

+0

謝謝! 好吧,我看到有一個與MySQL的問題!錯誤消息是: 錯誤2002(HY000):無法通過套接字'/var/lib/mysql/mysql.sock'連接到本地MySQL服務器(2) – Mirkolino

+0

是 - 數據庫服務器未運行。如果你不能從服務器 –

回答

0

[根@星號〜]#須藤蔭安裝mysql服務器 插件abilitati:從緩存HOSTFILE *基fastestmirror,很快,優先級,安全 Impostazione processo二installazione 加載鏡速度:it.centos.contactlab。它 * EPEL:mirrors.n-ix.net *演員:​​it.centos.contactlab.it * rpmforge軟件:mirrors.ircam.fr *更新:it.centos.contactlab.it 伊爾pacchetto的mysql - 服務器 - 5.1.73-5.el6_7.1.x86_64ègiàinstallato e aggiornato all'ultima versione Niente da fare [root @ Asterisk〜]#sudo/sbin/service mysqld start MySQL守護程序未能啓動。 啓動mysqld:[失敗] [根@星號〜]#

+0

嘗試(僅用於測試)#mysqld ---不是mysql並查看輸出 –

+0

[root @ Asterisk〜]#mysqld -bash:mysqld:command not found – Mirkolino

+0

你有teamviewer嗎?所以我可以看到shell –

0

在/ usr /的libexec/mysqld的:表 'mysql.plugin' 不存在 160512二十三時40分37秒[錯誤]無法打開mysql.plugin表。請運行mysql_upgrade來創建它。 160512 23:40:37 InnoDB:初始化緩衝池,大小= 8.0M 160512 23:40:37 InnoDB:緩衝池完成初始化 InnoDB:錯誤:自動擴展數據文件./ibdata1的大小不同 InnoDB:0頁(向下取整爲MB)超過.cnf文件中指定的值: InnoDB:初始640頁,最大值0(相關如果非零)頁面! InnoDB:無法打開或創建數據文件。 InnoDB:如果你試圖添加新的數據文件,並且在這裏失敗了,你可以在my.cnf中編輯innodb_data_file_path返回 InnoDB:它到底是什麼,並且刪除InnoDB創建的新ibdata文件 InnoDB:in這次失敗的嘗試。 InnoDB只寫了這些文件,其中充滿了 InnoDB:零,但還沒有以任何方式使用它們。但要小心:不要 InnoDB:刪除包含您珍貴數據的舊數據文件! 160512 23:40:37 [錯誤]插件'InnoDB'初始化函數返回錯誤。 160512 23:40:37 [錯誤]插件'InnoDB'註冊爲存儲引擎失敗。 160512 23:40:37 [錯誤]/usr/libexec/mysqld:寫入文件錯誤'/var/lib/mysql/Asterisk.pid'(Errcode:28) 160512 23:40:37 [ERROR] Can not啓動服務器:無法創建PID文件:設備上沒有剩餘空間

相關問題