濮阳杆衣贸易有限公司

主頁 > 知識庫 > MySQL無法啟動的解決辦法

MySQL無法啟動的解決辦法

熱門標簽:怎么申請400電話申請 電銷機器人價格多少錢一臺 地圖標注圖標素材入駐 龍圖酒吧地圖標注 怎么辦理400電話呢 電話機器人免費嗎 好搜地圖標注 400電話申請什么好 百度地圖標注地方備注

MySQL無法啟動的解決辦法

MySQL無法啟動

在停止mysql之后,執(zhí)行了一些操作(如修改主機名),重新啟動 mysql,發(fā)現(xiàn)起不來。 

[root@www ~]$ service mysql start 
Starting MySQL..^[[A.................................................................................................. ERROR! The server quit without updating PID file (/disk/mysql/www.pid).
[root@www ~]$ service mysql stop 
 ERROR! MySQL server PID file could not be found!
[root@www ~]$ service mysql stop 
 ERROR! MySQL server PID file could not be found!
[root@www ~]$ service mysql start 
Starting MySQL..................
還是老樣子,只好 Ctr+C 掉。
[root@www ~]$
 

實在是啟動不了,看一下日志:/disk/mysql/www.err 

120608 09:56:17 mysqld_safe Starting mysqld daemon with databases from /disk/mysql
120608 9:56:17 [Note] Plugin 'FEDERATED' is disabled.
120608 9:56:17 InnoDB: The InnoDB memory heap is disabled
120608 9:56:17 InnoDB: Mutexes and rw_locks use InnoDB's own implementation
120608 9:56:17 InnoDB: Compressed tables use zlib 1.2.3
120608 9:56:17 InnoDB: Using Linux native AIO
120608 9:56:17 InnoDB: Initializing buffer pool, size = 128.0M
120608 9:56:17 InnoDB: Completed initialization of buffer pool
InnoDB: Unable to lock ./ibdata1, error: 11
InnoDB: Check that you do not already have another mysqld process
InnoDB: using the same InnoDB data or log files.
120608 9:56:17 InnoDB: Retrying to lock the first data file
InnoDB: Unable to lock ./ibdata1, error: 11
InnoDB: Check that you do not already have another mysqld process
InnoDB: using the same InnoDB data or log files.
InnoDB: Unable to lock ./ibdata1, error: 11
InnoDB: Check that you do not already have another mysqld process
InnoDB: using the same InnoDB data or log files.
InnoDB: Unable to lock ./ibdata1, error: 11
...

 好像是原來的 mysqld 并沒有停下來。

強制終止 mysqld

[root@www ~]$ ps -ef|grep mysql 
root   4769   1 0 Jun06 ?    00:00:00 /bin/sh /usr/bin/mysqld_safe --datadir=/disk/mysql --pid-file=/disk/mysql/localhost.pid
mysql   4874 4769 0 Jun06 ?    00:04:04 /usr/sbin/mysqld --basedir=/usr --datadir=/disk/mysql --plugin-dir=/usr/lib/mysql/plugin --user=mysql --log-error=/disk/mysql/localhost.err --pid-file=/disk/mysql/localhost.pid --socket=/disk/mysql/mysql.sock
root   17947   1 0 09:56 pts/1  00:00:00 /bin/sh /usr/bin/mysqld_safe --datadir=/disk/mysql --pid-file=/disk/mysql/www.pid
mysql  18052 17947 0 09:56 pts/1  00:00:00 /usr/sbin/mysqld --basedir=/usr --datadir=/disk/mysql --plugin-dir=/usr/lib/mysql/plugin --user=mysql --log-error=/disk/mysql/www.err --pid-file=/disk/mysql/www.pid --socket=/disk/mysql/mysql.sock
root   18099 17514 0 09:56 pts/1  00:00:00 grep mysql
[root@www ~]$ killall mysqld 
[root@www ~]$ killall mysqld 
[root@www ~]$ ps -ef|grep mysql 
root   18116 17514 0 09:57 pts/1  00:00:00 grep mysql
[root@www ~]$

 啟動 mysqld ,現(xiàn)在執(zhí)行多次啟動命令都沒有問題。

[root@www ~]$ service mysql start 
Starting MySQL. SUCCESS! 
[root@www ~]$ 
[root@www ~]$ 
[root@www ~]$ 
[root@www ~]$ 
[root@www ~]$ service mysql start 
Starting MySQL SUCCESS! 
[root@www ~]$
 

前面 www.err 文件中顯示的 error: 11 到底是什么,看下:

[root@www ~]$ perror 11 
OS error code 11: Resource temporarily unavailable
[root@www ~]$ 
[root@www ~]$

 如有疑問請留言或者到本站社區(qū)交流討論,感謝閱讀,希望能幫助到大家,謝謝大家對本站的支持!

您可能感興趣的文章:
  • windows下python之mysqldb模塊安裝方法
  • 在Mac OS X中配置Apache+PHP+MySQL運行環(huán)境的詳細步驟
  • MySQL5.7免安裝版配置圖文教程
  • MySQL 5.7雙主同步部分表的實現(xiàn)過程詳解
  • oracle、mysql數(shù)據(jù)庫停止與啟動的批處理文件
  • 詳解mysql中的靜態(tài)變量的作用

標簽:浙江 防疫工作 溫州 固原 汕尾 撫順 廣西 內(nèi)江

巨人網(wǎng)絡(luò)通訊聲明:本文標題《MySQL無法啟動的解決辦法》,本文關(guān)鍵詞  MySQL,無法,啟動,的,解決,;如發(fā)現(xiàn)本文內(nèi)容存在版權(quán)問題,煩請?zhí)峁┫嚓P(guān)信息告之我們,我們將及時溝通與處理。本站內(nèi)容系統(tǒng)采集于網(wǎng)絡(luò),涉及言論、版權(quán)與本站無關(guān)。
  • 相關(guān)文章
  • 下面列出與本文章《MySQL無法啟動的解決辦法》相關(guān)的同類信息!
  • 本頁收集關(guān)于MySQL無法啟動的解決辦法的相關(guān)信息資訊供網(wǎng)民參考!
  • 推薦文章
    汨罗市| 甘谷县| 内江市| 商南县| 古浪县| 商洛市| 钟山县| 长汀县| 长泰县| 封开县| 赤壁市| 杭州市| 滦南县| 格尔木市| 长沙县| 墨玉县| 绵竹市| 库伦旗| 龙门县| 加查县| 环江| 抚顺县| 诏安县| 太康县| 子长县| 芒康县| 车致| 晋城| 永寿县| 浦北县| 丰都县| 德化县| 军事| 新丰县| 浦东新区| 奎屯市| 惠水县| 阿拉善盟| 兴义市| 泽州县| 九寨沟县|