淺析MySQL-5.1.x在RH5上安裝報錯的問題

來源:互聯網
上載者:User

客戶要求mysql-5.1.32是gbk的版本

我從mysql.com下載了二進位源碼,不用編譯自己安裝就好了。後來查看到是latin1的語言~

網上搜尋了半天,一篇有用的文章也沒有,都是在freebsd下如何重新安裝mysql-5.1.32,讓他支援gbk

不得已。又搜尋了下找到了mysql5.1.32的源碼包,還是手動編譯自己心裡放心~

從這裡下載http://dev.mysql.com/downloads/mysql/5.1.html  mysql5.1.32.tar.gz

至於如何支援gbk,還是預設的--with-charset=gbk --with-xcharset=all

最主要是安裝好後出現問題,啟動時候出錯,查看error

/usr/local/mysql5/libexec/mysqld: Table 'mysql.plugin' doesn't exist

090224 23:30:42 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.

090224 23:30:42 [ERROR] /usr/local/mysql5/libexec/mysqld: unknown option '--skip-federated'

090224 23:30:42 [ERROR] Aborting

090224 23:30:42 [Note] /usr/local/mysql5/libexec/mysqld: Shutdown complete

解決方案

my.cnf裡注釋掉--skip-federated新版本不需要這個參數了。如果需要這個引擎的在編譯的時候要加上
--with-plugins=federated,在my.cnf裡用federated參數就行了。

  1. 實戰PHP5+Apache2.2+MySQL5.1配置經曆
  2. MySQL效能最佳化實戰
  3. 最佳化MySQL插入方法的五個妙招

相關文章

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.