Spec-Zone .ru
спецификации, руководства, описания, API

15.7.2.2. Installing MySQL Proxy from a Source Distribution

You can download a source package and compile the MySQL Proxy yourself. To build from source, you must have the following prerequisite components installed:

Note

On some operating systems, you might need to manually build the required components to get the latest version. If you have trouble compiling MySQL Proxy, consider using a binary distributions instead.

After verifying that the prerequisite components are installed, configure and build MySQL Proxy:

shell> tar zxf
        mysql-proxy-0.8.2.tar.gzshell> cd
        mysql-proxy-0.8.2shell> ./configureshell> make

To test the build, use the check target to make:

shell> make check

The tests try to connect to localhost using the root user. To provide a password, set the MYSQL_PASSWORD environment variable:

shell> MYSQL_PASSWORD=root_pwd make
        check

You can install using the install target:

shell> make install

By default, mysql-proxy is installed into /usr/local/sbin/mysql-proxy. The Lua example scripts are installed into /usr/local/share.