最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

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

 更新時(shí)間:2017年09月11日 09:41:02   作者:codingstandards  
這篇文章主要介紹了MySQL無法啟動(dòng)的解決辦法的相關(guān)資料,希望通過本文大家能解決數(shù)據(jù)庫不能啟動(dò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/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 并沒有停下來。

強(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.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 ~]$

 啟動(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)文章

  • jdbc連接mysq之serverTimezone設(shè)定方式

    jdbc連接mysq之serverTimezone設(shè)定方式

    這篇文章主要介紹了jdbc連接mysq之serverTimezone設(shè)定方式,具有很好的參考價(jià)值,希望對(duì)大家有所幫助,如有錯(cuò)誤或未考慮完全的地方,望不吝賜教
    2024-01-01
  • JDBC連接的六步實(shí)例代碼(與mysql連接)

    JDBC連接的六步實(shí)例代碼(與mysql連接)

    這篇文章主要給大家介紹了關(guān)于JDBC連接的相關(guān)資料,文中通過示例代碼介紹的非常詳細(xì),對(duì)大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)學(xué)習(xí)吧
    2021-05-05
  • Django+mysql配置與簡(jiǎn)單操作數(shù)據(jù)庫實(shí)例代碼

    Django+mysql配置與簡(jiǎn)單操作數(shù)據(jù)庫實(shí)例代碼

    這篇文章主要介紹了Django+mysql配置與簡(jiǎn)單操作數(shù)據(jù)庫實(shí)例,需要的朋友可以參考下
    2017-07-07
  • MySQL優(yōu)化之Index Merge的使用

    MySQL優(yōu)化之Index Merge的使用

    本文主要介紹了MySQL優(yōu)化之Index Merge的使用,文中通過示例代碼介紹的非常詳細(xì),具有一定的參考價(jià)值,感興趣的小伙伴們可以參考一下
    2022-03-03
  • MySQL [Warning] TIMESTAMP with implicit DEFAULT value is deprecated(報(bào)錯(cuò)信息解決)

    MySQL [Warning] TIMESTAMP with implicit&

    本文介紹了MySQL中常見的報(bào)錯(cuò)信息及其解決方法,主要包括TIMESTAMP with implicit DEFAULT value is deprecated、ERROR_FOR_DIVISION_BY_ZERO和NO_ZERO_DATE/NO_ZERO_IN_DATE等報(bào)錯(cuò)信息,以及對(duì)應(yīng)的配置文件設(shè)置和sql_mode修改方法,感興趣的朋友一起看看吧
    2025-02-02
  • mysql的事務(wù)隔離級(jí)別詳細(xì)解析

    mysql的事務(wù)隔離級(jí)別詳細(xì)解析

    這篇文章主要介紹了mysql的事務(wù)隔離級(jí)別詳細(xì)解析,事務(wù)是應(yīng)用程序中一系列嚴(yán)密的操作,所有操作必須成功完成,否則在每個(gè)操作中所作的所有更改都會(huì)被撤消,需要的朋友可以參考下
    2023-12-12
  • Linux平臺(tái)mysql開啟遠(yuǎn)程登錄

    Linux平臺(tái)mysql開啟遠(yuǎn)程登錄

    本文給大家分享的是在Linux平臺(tái)為MySQL開啟遠(yuǎn)程登錄連接的方法,有相同需求的小伙伴可以參考下
    2017-02-02
  • MySQL 8忘記密碼的最佳處理方式淺析

    MySQL 8忘記密碼的最佳處理方式淺析

    這篇文章主要給大家介紹了關(guān)于MySQL 8忘記密碼的處理方式,文中通過圖文介紹的非常詳細(xì),對(duì)大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價(jià)值,需要的朋友們下面來一起學(xué)習(xí)學(xué)習(xí)吧
    2019-02-02
  • Mysql數(shù)據(jù)庫之索引優(yōu)化

    Mysql數(shù)據(jù)庫之索引優(yōu)化

    MySQL憑借著出色的性能、低廉的成本、豐富的資源,已經(jīng)成為絕大多數(shù)互聯(lián)網(wǎng)公司的首選關(guān)系型數(shù)據(jù)庫。本文給大家介紹mysql數(shù)據(jù)庫之索引優(yōu)化,感興趣的朋友一起學(xué)習(xí)吧
    2016-03-03
  • MYSQL 運(yùn)算符總結(jié)

    MYSQL 運(yùn)算符總結(jié)

    這篇文章主要介紹了MYSQL 運(yùn)算符,MySQL支持的算術(shù)運(yùn)算符有加法、減法、乘法、除法返回商、除法返回余數(shù),下面來看看文章的詳細(xì)介紹,需要的朋友可以參考一下
    2021-11-11

最新評(píng)論

罗江县| 灵川县| 吴堡县| 丽水市| 合山市| 色达县| 湘潭县| 介休市| 忻州市| 潮州市| 永年县| 舞阳县| 邢台市| 崇义县| 澄城县| 临海市| 茂名市| 佛山市| 柘荣县| 新余市| 新蔡县| 长沙市| 阳新县| 松溪县| 漠河县| 林西县| 阿合奇县| 丰都县| 江阴市| 喀喇沁旗| 历史| 黄大仙区| 武穴市| 武义县| 视频| 汉寿县| 洞头县| 隆化县| 茂名市| 弋阳县| 伊宁市|