About MariaDB
MariaDB Server is a relational database started by MySQL's original developers and released under GPL-2.0. It speaks the MySQL protocol, so most clients, drivers and applications work unchanged, and it adds Galera clustering, system-versioned tables and a choice of storage engines.
A database on its own CloudSat VPS keeps queries off your web server and lets you size memory for the buffer pool. NVMe keeps random reads fast, and a snapshot gives you a restore point before schema changes.
After deploy MariaDB listens on port 3306, and on Ubuntu the root account signs in through the local socket with sudo mariadb, no password needed.
What you get with MariaDB
- Compatibility with MySQL clients and drivers
- InnoDB plus other storage engines
- Galera Cluster for multi-primary replication
- System-versioned tables for point-in-time queries
- JSON functions, window functions and CTEs
MariaDB use cases
- A database server for WordPress, Nextcloud or custom apps
- Replacing a MySQL instance with an open-source equivalent
- A replica that takes reporting queries off the primary
After you deploy MariaDB
- When the console lists the server as Running, SSH in as root and open a client with
sudo mariadb. - Run
mariadb-secure-installationto remove anonymous users and the test database. - Create an application user, for example
CREATE USER 'app'@'203.0.113.10' IDENTIFIED BY 'a-long-password';, and grant only what it needs. - For remote access, change
bind-addressand allow port 3306 only from your app servers in a CloudSat firewall.
MariaDB ports
Open these in your firewall if you use one: 3306/tcp MariaDB (MySQL protocol).
MariaDB FAQ
Can I move a MySQL database to MariaDB?
Usually, yes. Dump it with mysqldump and import the file, but read the compatibility notes first when coming from MySQL 8, since some features and defaults differ.
How should I size the server?
Let InnoDB's buffer pool hold your working set. On a VPS that runs only the database, innodb_buffer_pool_size is often set to half or more of the memory.
Disclaimer. The MariaDB project has no affiliation with CloudSat and does not endorse it. Names and logos belong to their owners and appear only to identify the software.