實例講解啓動mysql server失敗的解決方法

實例講解啓動mysql server失敗的解決方法

來源: 做者: 發表於: 2012-08-19 17:15  點擊: 2470
啓動mysql server 失敗,查看/var/log/mysqld.err 080329 16:01:29 [ERROR] Cant start server : Bind on unix socket: No such file or directory 080329 16:01:29 [ERROR] Do you already have another mysqld server running on socket: /var/run/mysqld/

啓動mysql server 失敗,查看/var/log/mysqld.errhtml


080329 16:01:29 [ERROR] Cant start server : Bind on unix socket: No such file or directorymysql

080329 16:01:29 [ERROR] Do you already have another mysqld server running on socket: /var/run/mysqld/mysqld.sock ?sql

080329 16:01:29 [ERROR] Abortingapp

080329 16:01:29 InnoDB: Starting shutdown...socket

080329 16:01:30 InnoDB: Shutdown completed; log sequence number 0 4646872spa

080329 16:01:30 [Note] /usr/sbin/mysqld: Shutdown completeunix

百思不得其解,後來查看/var/db/pkg/dev-db/mysql-5.0.56/CONTENTS 文件,或者執行equery f mysql(兩種方法非Gentoo 發佈不適用),得知安裝文件中包含/var/run/d,而這個目錄不存在,回憶起以前曾清空過/var/run目錄,一直覺得這下面的內容都是動態建立,刪除以後重啓系統便可,看來對mysql 來講還不是這麼回事。server


建立此目錄,並chown,問題解決。htm


# mkdir /var/run/mysqldget

# chown mysql:mysql /var/run/mysqld

相關文章
相關標籤/搜索