-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating

MariaDB Cookbook
By :

In order to use Sphinx, we need to add a user to our MariaDB database and configure the Sphinx daemon so that it indexes the content we want it to.
Install the SphinxSE as described in the Installing SphinxSE in MariaDB recipe in this chapter. Install the Sphinx daemon as described in either the Installing the Sphinx daemon on Linux recipe or the Installing the Sphinx daemon on Windows recipe, both in this chapter, depending on which operating system we are using.
Open the mysql
command-line client and create a user with SELECT
rights for the tables in the databases we want the Sphinx daemon to index, using the following statements:
CREATE USER 'sphinx'@localhost IDENTIFIED BY 'sphinxsecretpassword'; GRANT SELECT on test.* to 'sphinx'@localhost;
Move the default sphinx.conf
file out of the way; for example, the following will work on Linux:
sudo mv -vi sphinx.conf sphinx.conf.dist
Create a new sphinx.conf
file in a text editor ...
Change the font size
Change margin width
Change background colour