MySQL安裝過程啟動mysqld_safe中提示的pid ended錯誤導致無法啟動問題處理

來源:互聯網
上載者:User

標籤:mysql.sock mysqld_safe 無法啟動 初始化 initialize

  1. 執行Mysqld --initialize --user=mysql後,初始化沒有問題

  2. 在執行mysqld_safe --user=mysql &啟動時,shell提示如下

    650) this.width=650;" src="http://s5.51cto.com/wyfs02/M00/8C/26/wKiom1hjZ-bQP8uCAABeh_GkddQ755.png" title="1111.png" width="700" height="96" border="0" hspace="0" vspace="0" style="width:700px;height:96px;" alt="wKiom1hjZ-bQP8uCAABeh_GkddQ755.png" />然後

    ps -ef | grep mysql

    發現並沒有mysqld進程存在,判斷為Mysqld進程根本沒有啟動成功

  3. 檢查錯誤記錄檔 cat error.log

發現如下錯誤資訊

650) this.width=650;" src="/e/u261/themes/default/images/spacer.gif" style="background:url("/e/u261/lang/zh-cn/images/localimage.png") no-repeat center;border:1px solid #ddd;" alt="spacer.gif" />  650) this.width=650;" src="http://s4.51cto.com/wyfs02/M02/8C/23/wKioL1hjacShiartAAGlX6pjeuA710.png-wh_500x0-wm_3-wmp_4-s_2447498739.png" title="2222.png" width="700" height="295" border="0" hspace="0" vspace="0" style="width:700px;height:295px;" alt="wKioL1hjacShiartAAGlX6pjeuA710.png-wh_50" />

  問題出在系統無法找到unix通訊端檔案/tmp/mysql/sock

 

4.多次重新初始化後,仍然出現此錯誤。懷疑可能是之前空間滿導致無法啟動時留下的mysql.sock檔案與現有檔案產生衝突

    進入tmp檔案夾查看 #ll

    650) this.width=650;" src="http://s4.51cto.com/wyfs02/M02/8C/27/wKiom1hja6KQY4CKAACztSTx_e8479.png-wh_500x0-wm_3-wmp_4-s_3478578111.png" title="2222.png" width="700" height="180" border="0" hspace="0" vspace="0" style="width:700px;height:180px;" alt="wKiom1hja6KQY4CKAACztSTx_e8479.png-wh_50" />

    發現了被錯誤鎖定的mysql.sock檔案

     #rm -rf mysql.sock.lock

    重新初始化,並啟動mysqld_safe指令碼後可以正常登入

    650) this.width=650;" src="http://s4.51cto.com/wyfs02/M02/8C/27/wKiom1hjbEOT1xCJAACE2t8vF30876.png-wh_500x0-wm_3-wmp_4-s_3285516440.png" title="3333328153931.png" width="700" height="259" border="0" hspace="0" vspace="0" style="width:700px;height:259px;" alt="wKiom1hjbEOT1xCJAACE2t8vF30876.png-wh_50" />


本文出自 “FF的網管日記” 部落格,請務必保留此出處http://l0vesql.blog.51cto.com/4159433/1886921

MySQL安裝過程啟動mysqld_safe中提示的pid ended錯誤導致無法啟動問題處理

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.