在已有MySQL情況下安裝sphinxSE

來源:互聯網
上載者:User
1.下載相應的包

(1)MySQL源碼包

(2)sphinx-0.9.9.tar.gz

具體步驟略(wget)

2.安裝

1  cd /opt/2  tar -zxvf ./mysql-5.1.66.tar.gz 3  tar -zxvf ./sphinx-0.9.9.tar.gz 4  mysqladmin  -uroot -pPWD version 5  cd /opt/6  ls7  cp -r ./sphinx-0.9.9/mysqlse/  ./mysql-5.1.66/storage/sphinx8  cd ./mysql-5.1.669  sh BUILD/autorun.sh 10  ./configure 11  make12  cp storage/sphinx/.libs/ha_sphinx.* /usr/lib/mysql/plugin13  mysql -uroot -pPWD   mysql> show engines;   mysql> install plugin sphinx soname 'ha_sphinx.so';

看到如則成功了

3.注意(1)MySQL源碼的版本一定要和你現有已安裝的MySQL版本一致,否則

(2)使用:./configure --prefix=/usr/local/mysql(./configure )          不要使用:./configure --prefix=/usr/local/mysql --with-plugins=sphinx(反正不要使用--with-plugins=sphinx)

記住產生的是ha_sphinx.so不是sphinx.so

相關文章

聯繫我們

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