Install the Sphinx engine for MySQL-5.5.9 Compilation

Source: Internet
Author: User

Source code download

 
 
  1. wget http://admin.ooopic.com/soft/linux/cmake-2.8.3.tar.gz 
  2. wget http://www.wapm.cn/uploads/csft/4.0/coreseek-4.0.1-beta.tar.gz 
  3. wget http://ftp.jaist.ac.jp/pub/mysql/Downloads/MySQL-5.5/mysql-5.5.9.tar.gz 

Tip: the installation method of mysql 5.5.9 is different from that of the previous version, and the cmake tool is also required. By default, it is installed in the/usr/local/mysql path and can be changed after installation.

Install CMake

 
 
  1. Tar zxvf cmake-2.8.3.tar.gz
  2. Cd cmake-2.8.3
  3. ./Bootstrap
  4. Make
  5. Make install

Install MYSQL

  
  
  1. Tar xzvf coreseek-4.0.1.tar.gz
  2. Tar xzvf mysql-VERSION.tar.gz
  3.  
  4. # Copy the sphinx engine source code to the storage directory of the mysql source package
  5. Cp-R coreseek-4.0.1/csft-4.0.1/mysqlse mysql-5.5.9/storage/sphse
  6. Cd mysql-5.5.9
  7. Cmake.-DCMAKE_BUILD_TYPE = Release-DWITH_SPHINX_STORAGE_ENGINE = 1
  8. Make
  9. # Make will show the information halfway through
  10. Scanning dependenciesOfTarget sphinx
  11. [30%] Building CXX object storage/sphpackages/CMakeFiles/sphfiles. dir/ha_sphinx.cc.o
  12. Linking CXX shared module ha_sphinx.so
  13. [30%] Built target sphinx
  14.  
  15. Make install
  16. Cd/usr/Local/Mysql
  17. Mkdir-p/var/log/mysql/usr/Local/Mysql/etc
  18. Cp support-files/my-medium.cnf/usr/Local/Mysql/etc/my. cnf


Compile/etc/my. cnf: Add the following configuration: basedir =/usr/local/mysql # mysql location datadir =/usr/local/mysql/data # mysql database file storage path.

  
  
  1. Chown-R mysql: mysql/usr/Local/Mysql
  2. /Usr/Local/Mysql/scripts/mysql_install_db-- Basedir =/usr/local/mysql -- user = mysql 
  3. ./Bin/mysqld_safe-- Defaults-extra-file =/usr/local/mysql/etc/my. cnf -- user = mysql & 
  4. Mysql-uroot-p
  5. Mysql> install plugin sphsf-soname"Ha_sphinx.so";
  6. Mysql> show engines;
  7. # If the ENGINE list shows sphenders, the installation is successful, including innodb and MyISAM.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.