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參數就行了。

聯繫我們

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