0% found this document useful (0 votes)
7 views3 pages

Ritam Proxy Req Help

The document provides a step-by-step guide for installing and configuring ProxySQL on an Ubuntu system, including commands for downloading, installing, and starting the service. It also includes instructions for setting up the configuration file and managing the service. Additionally, it outlines how to remove ProxySQL and its associated files if needed.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views3 pages

Ritam Proxy Req Help

The document provides a step-by-step guide for installing and configuring ProxySQL on an Ubuntu system, including commands for downloading, installing, and starting the service. It also includes instructions for setting up the configuration file and managing the service. Additionally, it outlines how to remove ProxySQL and its associated files if needed.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 3

wget https://github.com/sysown/proxysql/releases/download/v3.0.

0-alpha/
proxysql_3.0.0-ubuntu20_amd64.deb

sudo dpkg -i proxysql_3.0.0-ubuntu20_amd64.deb

proxysql --version

sudo apt --fix-broken install

sudo systemctl start proxysql

sudo apt install mysql-client-core-8.0

mysql -u admin -padmin -h 127.0.0.1 -P6032 --prompt='Admin> '

sudo tail -f /var/lib/proxysql/proxysql.log

psql -h 127.0.0.1 -p 6432 -U postgres postgres

https://www.pythian.com/blog/technical-track/authenticating-vault-ldap-accessing-
mysql-proxysql

sudo rm -f /var/lib/proxysql/proxysql.pid
sudo nano /usr/lib/systemd/system/proxysql.service

[Unit]
Description=High Performance Advanced Proxy for MySQL
After=network.target

[Service]
Type=forking
ExecStart=/usr/bin/proxysql --idle-threads -c /etc/proxysql.cnf
PIDFile=/var/lib/proxysql/proxysql.pid
User =proxysql
Group=proxysql
Restart=on-failure

[Install]
WantedBy=multi-user.target

sudo chown proxysql:proxysql /etc/proxysql.cnf


sudo chmod 644 /etc/proxysql.cnf

sudo chown proxysql:proxysql /etc/proxysql.cnf


sudo chmod 644 /etc/proxysql.cnf
sudo mkdir -p /var/lib/proxysql/
sudo chown proxysql:proxysql /var/lib/proxysql/
sudo systemctl daemon-reload
sudo systemctl restart proxysql
sudo systemctl restart proxysql.service

sudo nano /etc/proxysql.cnf


authnull =
{
org_id = 105
tenant_id = 1
api_url = "https://prod.api.authnull.com/authnull0/api/v1/authn/v3/do-
authenticationV4"
}

sudo systemctl stop proxysql

sudo systemctl disable proxysql

sudo apt-get purge proxysql


sudo apt-get autoremove

# Remove configuration file


sudo rm /etc/proxysql.cnf

# Remove data directory


sudo rm -rf /var/lib/proxysql

# Remove log directory


sudo rm -rf /var/log/proxysql

sudo rm -rf /usr/bin/proxysql


sudo rm -rf proxysql

git clone https://github.com/sysown/proxysql.git


cd proxysql
git checkout tags/v2.7.2

sudo apt-get install -y automake bzip2 cmake make g++ gcc git openssl libssl-dev
libgnutls28-dev libtool patch uuid-dev
sudo apt install zlib1g-dev
sudo apt install nlohmann-json3-dev

sudo nano /etc/proxysql.cnf

authnull =
{
org_id = 105
tenant_id = 1
api_url = "https://prod.api.authnull.com/authnull0/api/v1/authn/v3/do-
authenticationV4"
}

username,database,host, user machine ip


make clean && make -j$(nproc)
HeidiSQl
session cpp
session h
configfile cpp
proxyadmin cpp
cnf file
service file

You might also like