As you may know mysql fulltext search is not highly scalable. One of the options to get around this scalability limitation, which I prefer, is to use Sphinx. You can use Sphinx with out having to alter your mysql installation. But, if you would like to use from within mysql and not have to worry about how to pass data between Sphinx and MySQL, you can enable sphinxse (sphinx storage engine). It is not included with mysql by default so you will have to compile it yourself.
Here are the instructions on how to get sphinxse compiled with your mysql installation on CentOS x64. I am sure same instructions will work for other flavors but I have not tested it. I will be compiling the most current version of sphinx (0.9.8) with most current stable version of mysql (5.0.51b) at the time of the writing. Let’s get the appropriate packages first:
wget http://www.sphinxsearch.com/downloads/sphinx-0.9.8.tar.gz
wget http://dev.mysql.com/get/Downloads/MySQL-5.0/mysql-5.0.51b.tar.gz/from/http://mysql.he.net/
tar zxpf sphinx*
tar zxpf mysql*
You will also need “bison”, “patch”, “automake” and “libtool” installed. Let us just do a yum install for it.
yum -y install bison patch automake libtool
NOTE:Â if you don’t install bison, you will get the following error:
sed '/^#/ s|y\.tab\.c|sql_yacc.cc|' y.tab.c >sql_yacc.cct && mv sql_yacc.cct sql_yacc.cc
sed: can't read y.tab.c: No such file or directory
make[2]: *** [sql_yacc.cc] Error 2
Let us continue with patching mysql source with sphinx storage engine (sphinxse) code and compile/install our new binaries.
cd mysql*
patch -p1 < ../sphinx-0.9.8/mysqlse/sphinx.5.0.37.diff #Make sure everything succeeded.
BUILD/autorun.sh
mkdir sql/sphinx
cp ../sphinx-0.9.8/mysqlse/* sql/sphinx
./configure --prefix=/usr/local/mysql --with-sphinx-storage-engine
make
make install
Now start your mysql installtion and check if engine support is compiled in:
mysql> show engines\G
Engine: SPHINX
Support: YES
Comment: Sphinx storage engine 0.9.8
To read more about how to use Sphinx storage engine, please refer to:Â Sphinx documentation for using sphinx storage engine
————————————-
DISCLAIMER: Please be smart and use code found on internet carefully. Make backups often. And yeah.. last but not least.. I am not responsible for any damage caused by this posting. Use at your own risk.
For yum install you might wanna run
yum -y install bison patch automake libtool gcc-c++
just to insure you have the compiler installed.
In case you installed the compiler later you make need to
make clean
make distclean
re-run ./configure … onwards
Please share the steps to be followed for SphinxSE to be integrated with MySQL 5.0 in Windows
Please share the steps to be followed for SphinxSE to be integrated with MySQL 5.0 in Windows.
thank you very much dude, i install sphinxse, perfectly 🙂
Find out how to have muscles of iron and a breathtaking body where no woman will ever sfugirti -> http://9nl.co/TheMindMuscleBlueprint
“Acne goodbye”: a manual to have perfect skin immediately visit the site–>
http://9nl.co/AcneFreeIn1NightGauranteed
Howdy crazytoon.com
SEO Link building is a process that requires a lot of time.
If you aren’t using SEO software then you will know the amount of work load involved in creating accounts, confirming emails and submitting your contents to thousands of websites in proper time and completely automated.
With THIS SOFTWARE the link submission process will be the easiest task and completely automated, you will be able to build unlimited number of links and increase traffic to your websites which will lead to a higher number of customers and much more sales for you.
With the best user interface ever, you just need to have simple software knowledge and you will easily be able to make your own SEO link building campaigns.
The best SEO software you will ever own, and we can confidently say that there is no other software on the market that can compete with such intelligent and fully automatic features.
The friendly user interface, smart tools and the simplicity of the tasks are making THIS SOFTWARE the best tool on the market.
IF YOU’RE INTERESTED, CONTACT ME ==> [email protected]
Regards, Damian Jeffery
Austria, BURGENLAND, Seitenstetten Dorf, 3352, Wurmbrandgasse 95
Hello
SEO Link building is a process that requires a lot of time fo crazytoon.com
If you aren’t using SEO software then you will know the amount of work load involved in creating accounts, confirming emails and submitting your contents to thousands of websites in proper time and completely automated.
With THIS SOFTWARE the link submission process will be the easiest task and completely automated, you will be able to build unlimited number of links and increase traffic to your websites which will lead to a higher number of customers and much more sales for you.
With the best user interface ever, you just need to have simple software knowledge and you will easily be able to make your own SEO link building campaigns.
The best SEO software you will ever own, and we can confidently say that there is no other software on the market that can compete with such intelligent and fully automatic features.
The friendly user interface, smart tools and the simplicity of the tasks are making THIS SOFTWARE the best tool on the market.
IF YOU’RE INTERESTED, CONTACT ME ==> [email protected]
Regards,
Irma