# Install Debian Buster.

apt install adminer

echo "Alias /adminer /usr/share/adminer/adminer/" | sudo tee /etc/apache2/conf-available/adminer.conf
sudo a2enconf adminer.conf
sudo systemctl reload apache2

# On DB server, sql1:
CREATE USER 'root'@'10.42.1.129' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON *.* TO 'root'@'10.42.1.129';
FLUSH PRIVILEGES;

# On DB server, pg1:

# On workstation:
ssh -N -C -L 54452:localhost:80 adminer

# In browser
http://127.0.0.1:54452

