MariaDB Hosting: Your Own MariaDB Server
MariaDB is a relational database that began as a fork of MySQL by MySQL's original developers and stays largely compatible with it, with its own storage engines and features. It is the default MySQL-family database on many Linux distributions, and teams run it for WordPress, Nextcloud, Matomo and other PHP applications.
The one-click install uses Ubuntu 24.04's own mariadb-server package, which is MariaDB 10.11, a long-term-support series. It sets a generated password for root@localhost (shown on the server's page in the console), removes the anonymous users and drops the test database, the same clean-up mariadb-secure-installation does. MariaDB listens on 127.0.0.1 only until you change it.
The MariaDB Foundation's site is mariadb.org, and the server documentation is at mariadb.com/docs/server.
What it needs
MariaDB runs in a few hundred megabytes, but how fast it is depends on how much of your data fits in the InnoDB buffer pool. It defaults to 128 MB; MariaDB's documentation says it can be set up to 80% of memory on a server that mostly runs InnoDB. Set it in /etc/mysql/mariadb.conf.d/50-server.cnf:
[mysqld]
innodb_buffer_pool_size = 1G
and restart with systemctl restart mariadb.
The catalogue's minimum is 1 vCPU and 512 MB, which suits development. The recommended 1 vCPU and 2 GB fits the Veloxa 1 size: 1 vCPU, 2 GB RAM and 50 GB of disk for $8 a month, billed at $0.02 an hour and capped at the monthly price. Larger production databases move up to Veloxa 2 (4 GB, $15) or Veloxa 4 (8 GB, $30).
Connecting from your application
An application on the same server connects to localhost. For a remote one:
- In the browser terminal on the server's page, create a database and a user restricted to the application's address.
CREATE DATABASE appdb; CREATE USER 'app'@'203.0.113.10' IDENTIFIED BY 'a-long-password'; GRANT ALL ON appdb.* TO 'app'@'203.0.113.10'; - Set
bind-address = 0.0.0.0in50-server.cnfand restart MariaDB. - Every server gets a block of ports on the region's shared IPv4 address. Under How to connect, forward a port of the block to 3306 and connect with the shared address and that port. A dedicated IPv4 address (a paid add-on with limited availability) serves 3306 directly.
- Attach a VeloxaHost firewall that admits only your application's addresses. Private networks are not available in US East yet, so require TLS for remote users.
Backups and updates
Turn on automatic snapshots on the server page (hourly up to weekly, kept for 1 to 30 days) and scheduled backups (every 6 hours up to weekly, keeping 1 to 10). A snapshot is crash-consistent, and InnoDB recovers from it as after a power cut. Add logical dumps for restoring a single database:
mariadb-dump --single-transaction --routines --triggers --databases appdb > appdb.sql
--single-transaction gives a consistent dump for InnoDB tables only. For large databases, mariadb-backup takes physical hot backups. Minor releases arrive with apt upgrade; take a snapshot first.
FAQ
Which version do I get, and how long is it supported?
Ubuntu 24.04 ships MariaDB 10.11, which the MariaDB Foundation maintains until February 2028. Newer LTS series (11.4, 11.8) are available from MariaDB's own repository for a fresh install.
Is MariaDB a drop-in replacement for MySQL?
For most applications, yes: the same client protocol, the same SQL for everyday work, and mysql-style tools. The two have diverged, though. MariaDB's documentation lists differences such as JSON being stored as text, GTID replication that is not compatible with MySQL's, and some MySQL authentication plugins not being supported. Move with a mysqldump export rather than copying data files.
How much RAM does MariaDB need?
Enough for your working set in the buffer pool plus connections. 2 GB with a 1 GB buffer pool suits a small application. Memory can be raised from the console without a restart; raise innodb_buffer_pool_size to use it.
How do I move from a managed MySQL or MariaDB service?
Dump the database from the managed service with mysqldump --single-transaction (or mariadb-dump), copy the file over, and load it with mariadb appdb < appdb.sql.
What license is MariaDB under?
MariaDB Server is released under GPLv2, and the MariaDB Foundation commits to keeping it under that license.
Which VeloxaHost size fits MariaDB?
The recommended 1 vCPU and 2 GB of RAM is a Veloxa 1: 1 vCPU, 2 GB RAM and 50 GB of disk for $8 a month, billed at $0.02 an hour and capped at that price.