MySQL 5.7啟動失敗

來源:互聯網
上載者:User

標籤:create   資料庫   

1.1.1 現象

下載MySQL 5.7的zip包解壓縮以後,配置好data、tmp目錄,啟動資料庫失敗,查看錯誤記錄檔內容如下:

mysqld: Table ‘mysql.plugin‘ doesn‘t exist

2015-10-22T06:17:52.073875Z 0 [ERROR] Can‘t open the mysql.plugin table. Please run mysql_upgrade to create it.

1.1.2 原因

應該是沒有預設資料庫導致。

1.1.3 解決

先將my.default.ini改名為my.ini放到bin目錄

命令列執行: mysqld --initialize --user=mysql --console

先執行以上命令, 產生庫. 注意有個臨時密碼, 要記下來.

然後啟動服務,用MySQL Workbench串連資料庫,輸入剛才的臨時密碼,Workbench會要求修改密碼,此時將密碼修改為自己的密碼即可。

MySQL 5.7啟動失敗

聯繫我們

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