Linux安裝MySQL 5.1.55 沒有innoDB資料引擎

來源:互聯網
上載者:User

在Linux下安裝資料庫,遇到不少的麻煩。以下就是麻煩之一:

安裝好了以後沒有innodb資料庫引擎,找個不少資料,大致如下:

1,去掉#skip-innodb 前面的#

2,刪除記錄檔(查到過,現在找不到了)

檢查了一下,首先skip-innodb前面的“#”號是去掉的。其次,我壓根都找不到他所說的log_files。
後來決定重新編譯安裝。
./configure --prefix=/usr/local/mysql \
--with-extra-charsets=all --without-isam \
--exec-prefix=/usr/local/mysql \
--localstatedir=/usr/local/mysql/var \
--sysconfdir=/usr/local/mysql/etc --with-tcp-port=3306 \
--with-innodb --with-partition

結果出現錯誤: 大致意思就是不知道 --without-isam 、--with-extra-charset=all 還有--with-partition
運行./configure --help發現選項中根本沒有“--with-extra-charset=all” 應該是“--with-extra-charsets=all”(少了個s) , 而--with-innodb --with-partition根本沒有,也沒有類似的。

這就鬱悶了。./configure --help最後的地方出現innoDB,在plugins裡。忽然明白原來是作為外掛程式安裝的。一看選項果然有-個叫“--with-plugins” 和“--with-plugin-[]” 作為菜鳥就直接“--with-plugins=all" 好了,結果沒有錯誤了。

聯繫我們

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