How to compile PHP with MySQL support (RedHat, CentOS)
Simply two steps to add MySQL support to your PHP
1, yum remove php-common php
2, yum install php php-mysql php-common php-mbstring php-mcrypt php-devel php-xml php-gd
Simply two steps to add MySQL support to your PHP
1, yum remove php-common php
2, yum install php php-mysql php-common php-mbstring php-mcrypt php-devel php-xml php-gd
1, Sphinx can be MySQL’s storage engine
CREATE TABLE t1
(id INTEGER NOT NULL,
weight INTEGER NOT NULL,
query VARCHAR(3072) NOT NULL,
group_id INTEGER,
INDEX(query)
) ENGINE=SPHINX CONNECTION="sphinx://localhost:3312/enwiki";SELECT * FROM enwiki.searchindex docs
JOIN test.t1 ON (docs.si_page=t1.id) InsertText
WHERE query=”one document;mode=any” limit 1;
2, How to configure Sphinx with MySQL
Sphinx engine/plugin is not full engine:
still need to run “searcher” daemonNeed to compile MySQL source with Sphinx to integrate it
MySQL 5.0: need to patch source code
MySQL 5.1: no need to patch, copy Sphinx plugin to plugin dir
Next Page » Next Page » Next »
Sponsored Links Lab Supply Mall http://www.labsupplymall.com