国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 數(shù)據(jù)庫(kù) > MySQL > 正文

MySQL無法啟動(dòng)的解決辦法

2024-07-24 13:14:25
字體:
供稿:網(wǎng)友

MySQL無法啟動(dòng)的解決辦法

MySQL無法啟動(dòng)

在停止mysql之后,執(zhí)行了一些操作(如修改主機(jī)名),重新啟動(dòng) 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 ~]$ 

實(shí)在是啟動(dòng)不了,看一下日志:/disk/mysql/www.err 

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

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

強(qiáng)制終止 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.pidmysql   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.sockroot   17947   1 0 09:56 pts/1  00:00:00 /bin/sh /usr/bin/mysqld_safe --datadir=/disk/mysql --pid-file=/disk/mysql/www.pidmysql  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.sockroot   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 ~]$

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

[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ǐng)留言或者到本站社區(qū)交流討論,感謝閱讀,希望能幫助到大家,謝謝大家對(duì)本站的支持!


注:相關(guān)教程知識(shí)閱讀請(qǐng)移步到MYSQL教程頻道。
發(fā)表評(píng)論 共有條評(píng)論
用戶名: 密碼:
驗(yàn)證碼: 匿名發(fā)表
主站蜘蛛池模板: 饶河县| 雷州市| 高阳县| 那坡县| 博爱县| 宁安市| 临沧市| 沾益县| 策勒县| 秦皇岛市| 金沙县| 文水县| 乌拉特中旗| 抚远县| 德化县| 新野县| 灵璧县| 怀化市| 郑州市| 建平县| 永宁县| 亚东县| 巴马| 肥城市| 甘谷县| 方正县| 日喀则市| 泗洪县| 芒康县| 石屏县| 宁乡县| 遂溪县| 乳山市| 凤阳县| 日照市| 竹溪县| 陆川县| 札达县| 徐汇区| 廉江市| 眉山市|