Install ProxySQL 1.X from a binary tarball¶
Installing ProxySQL from a tarball is an alternative method if the recommended method, using either the apt or the yum package manager, is not applicable in your environment.
In Download ProxySQL 1.x page, select the ProxySQL version, and select Linux - Generic in the Software field. Download the appropriate package for your platform.
Extract the files from the archive and change to the directory that contains the extracted files.
# Extract the files (assuming you have changed to the download destination directory) $ tar xzf proxysql-VERSION-Linux-PLATFORM-ARCHITECTURE*.tar.gz # Change to the directory that contains the extracted files $ cd proxysql-VERSION-Linux-PLATFORM-ARCHITECTURE
Create a directory to store the ProxySQL data:
$ mkdir /home/user/data
Update the value of the
datadirin the configuration file to point to the data directory you have created.
Set the other options, as needed.
Start ProxySQL with the
-coption to pass the configuration file you have updated:
$ /home/user/path-to-extracted-dir/usr/bin/proxysql \ -c /home/user/path-to-extracted-dir/etc/proxysql.cnf