MySQL
SQL database by Oracle
DatabasesFree
Drop-in MySQL replacement
The script is free · VPS from $4.63 per month · installs in about 60 seconds
root@vps:~# command -v docker >/dev/null || curl -fsSL https://get.docker.com | sh; P=$(openssl rand -hex 16); echo "$P" > /root/mariadb-root-password && chmod 600 /root/mariadb-root-password && docker run -d --name mariadb --restart unless-stopped -p 127.0.0.1:3306:3306 -e MARIADB_ROOT_PASSWORD=$P -v mariadb-data:/var/lib/mysql mariadb:lts
✓ MariaDB 12.3.3 installed · about 60 seconds
root@vps:~#
MariaDB is a fork of MySQL by its original creators, fully open and compatible with MySQL clients. It is the default database in Debian and many hosting panels.
It suits WordPress, Joomla, PHP projects and bots: apps written for MySQL usually work without changes.
The command runs the official image of the LTS branch. The port is reachable only from the server, and a random root password is saved to /root/mariadb-root-password.
For MariaDB: at least 2 vCPU, 3 GB RAM and 45 GB NVMe.
Three steps in the bot or one command over SSH; installation takes about 60 seconds.
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/mariadb-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/mariadb-root-password && chmod 600 /root/mariadb-root-password && docker run -d --name mariadb --restart unless-stopped -p 127.0.0.1:3306:3306 -e MARIADB_ROOT_PASSWORD=$P -v mariadb-data:/var/lib/mysql mariadb:lts| Port | Protocol | Purpose |
|---|---|---|
| 3306 | tcp | Database connections (127.0.0.1 only) |
/root/mariadb-root-passworddocker exec -it mariadb mariadb -uroot -pCREATE DATABASE app; CREATE USER 'app'@'%' IDENTIFIED BY 'password'; GRANT ALL ON app.* TO 'app'@'%';Didn’t find an answer? Message @ExpressHost_SupportBot.
For most PHP projects there is no difference. MariaDB is fully open and is the default in Debian; choose MySQL if your app specifically requires it.
Yes, but both use port 3306 by default. Publish one of them on a different port, e.g. -p 127.0.0.1:3307:3306.
In the mariadb-data Docker volume. Backup: docker exec mariadb mariadb-dump -uroot -p --all-databases > backup.sql.
MariaDB installs at checkout — in the bot.
Netherlands, Amsterdam
$5.16/mo
$0.18 for 24 hours · $1.29 for 7 days
Pick MariaDB 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 MariaDB 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 MariaDB 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 MariaDB at the “Scripts” step when you order the server.