MySQL啟動不成功

來源:互聯網
上載者:User

標籤:it

MySQL啟動失敗 找不到原因 後來查詢

/var/lib/mysql目錄下的localhost.localdomain.err檔案

出現錯誤是

[[email protected] local]# service mysql start160704 15:57:28 [ERROR] /usr/sbin/mysqld: Can‘t find file: ‘./mysql/host.frm‘ (errno: 13)160704 15:57:28 [ERROR] Fatal error: Can‘t open and lock privilege tables: Can‘t find file: ‘./mysql/host.frm‘ (errno: 13)160704 15:57:28 mysqld_safe mysqld from pid file /var/lib/mysql/localhost.localdomain.pid ended


後經在/etc/my.cnf檔案中datadir目錄許可權是否正確

650) this.width=650;" src="http://s4.51cto.com/wyfs02/M02/83/AD/wKiom1d6IErjZLW3AAJObgKyLvs013.jpg-wh_500x0-wm_3-wmp_4-s_582868727.jpg" title="f8f1581ac04c07050669eb8d57411e6a.jpg" alt="wKiom1d6IErjZLW3AAJObgKyLvs013.jpg-wh_50" />

於是修改了許可權,就可以成功啟動

[[email protected] local]# service mysql startStarting MySQL..                                           [確定]



本文出自 “為了手指那個方向” 部落格,請務必保留此出處http://zhangyanfeng.blog.51cto.com/3884312/1795661

MySQL啟動不成功

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.