PostgreSQL
Relational database
DatabasesFree
SQL database by Oracle
The script is free · VPS from $4.63 per month · installs in about 2 minutes
root@vps:~# command -v docker >/dev/null || curl -fsSL https://get.docker.com | sh; P=$(openssl rand -hex 16); echo "$P" > /root/mysql-root-password && chmod 600 /root/mysql-root-password && docker run -d --name mysql --restart unless-stopped -p 127.0.0.1:3306:3306 -e MYSQL_ROOT_PASSWORD=$P -v mysql-data:/var/lib/mysql mysql:lts
✓ MySQL 9.7.2 installed · about 2 minutes
root@vps:~#
MySQL is one of the most popular SQL databases. It powers WordPress, most PHP projects, many CMSs and bots.
Your own database on a VPS gives you full control over settings, backups and performance. It is convenient to keep it next to your app and not expose it publicly.
The command runs the official Docker image of the LTS branch. The port is open on localhost only, and a random root password is saved to /root/mysql-root-password.
For MySQL: at least 2 vCPU, 3 GB RAM and 45 GB NVMe.
Three steps in the bot or one command over SSH; installation takes about 2 minutes.
Open @ExpressHost_bot and pay for a VPS. The server will be ready in about 60 seconds.
At the “Add-ons” step pick the script from the library, or run it later: Server settings → Scripts.
/root/mysql-root-passwordThe bot will send the server address and login details to the chat.
Connect to the server as root and run the command. Supported systems: Ubuntu 22.04, Ubuntu 24.04, Debian 12.
command -v docker >/dev/null || curl -fsSL https://get.docker.com | sh; P=$(openssl rand -hex 16); echo "$P" > /root/mysql-root-password && chmod 600 /root/mysql-root-password && docker run -d --name mysql --restart unless-stopped -p 127.0.0.1:3306:3306 -e MYSQL_ROOT_PASSWORD=$P -v mysql-data:/var/lib/mysql mysql:lts| Port | Protocol | Purpose |
|---|---|---|
| 3306 | tcp | Database connections (127.0.0.1 only) |
/root/mysql-root-passworddocker exec -it mysql mysql -uroot -pCREATE DATABASE app; CREATE USER 'app'@'%' IDENTIFIED BY 'password'; GRANT ALL ON app.* TO 'app'@'%';Didn’t find an answer? Message @ExpressHost_SupportBot.
The port is open only on the server. Use an SSH tunnel: ssh -L 3306:127.0.0.1:3306 root@IP.
docker exec mysql sh -c 'mysqldump -uroot -p"$MYSQL_ROOT_PASSWORD" --all-databases' > backup.sql
In the mysql-data Docker volume (the /var/lib/mysql folder inside the container).
MySQL installs at checkout — in the bot.
Netherlands, Amsterdam
$5.16/mo
$0.18 for 24 hours · $1.29 for 7 days
Pick MySQL at the “Scripts” step when you order the server.
Germany, Frankfurt
$6.50/mo
$0.23 for 24 hours · $1.63 for 7 days
Pick MySQL at the “Scripts” step when you order the server.
Poland, Warsaw
$4.63/mo
$0.17 for 24 hours · $1.16 for 7 days
Pick MySQL at the “Scripts” step when you order the server.
Estonia, Tallinn
$5.83/mo
$0.21 for 24 hours · $1.46 for 7 days
Pick MySQL at the “Scripts” step when you order the server.