解決用rpm安裝mysql時遇到系統庫沒有安裝的問題

來源:互聯網
上載者:User

這幾天做mysql的指令碼備份測試,在red hat linux 5.3下搭建mysql環境:
安裝mysq後l第一次啟動報錯:
110712 17:17:04 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
110712 17:17:04 [Note] Plugin 'FEDERATED' is disabled.
/usr/sbin/mysqld: Table 'mysql.plugin' doesn't exist
110712 17:17:04 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
InnoDB: The InnoDB memory heap is disabled
InnoDB: Mutexes and rw_locks use GCC atomic builtins
InnoDB: Compressed tables use zlib 1.2.3

google搜尋解決辦法:
執行 /usr/bin/mysql_install_db --user=mysql --datadir=/var/lib/mysql 重新安裝了mysql的系統庫 解決。
註:/var/lib/mysql為rpm包安裝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.