Databases
Every hosting account can create MariaDB (or MySQL) and PostgreSQL databases with their own users, browse them in phpMyAdmin or Adminer, and connect apps to them. Administrators choose the engine and tune the database server.
Creating a database
Databases → Create database. Most apps need one database and one user with access to it, so APOLO creates both in one step:
- Choose the Database engine (MariaDB, or PostgreSQL when it is installed) and enter the Database name: lowercase letters, digits and underscores, up to 24. The account's prefix (such as
ana_) keeps names unique on the server. - Create a user with full access (on by default): a user with the same name and a generated password, which gets full access to this database: read, write and change tables.
- Optionally link the database to a website: it then shows on the website's Databases tab. Linking doesn't change access.
A website's database
APOLO links a website to its database by itself when it can read the app's settings (WordPress, Joomla, Drupal, Moodle, Laravel). For another app, link it by hand: on the website's Databases tab, Link a database, then one of two ways:
- Locate the configuration file: open the folder of the app's settings in the website's folder and mark the file. The settings files of the usual apps (
wp-config.php,.env,config.php,configuration.phpand others) are marked. Read this file lists the account's databases the file names; choose one and Link. APOLO only reads the file, with the account's own rights; names in it that aren't databases of the account are listed apart. - Choose a database: choose one of the account's databases from the list and Link.
A database linked to another website moves to this one. The database then shows on the website, goes with it when it moves to another account, and gets the new address when the website's address changes. Take off this website in the database's actions removes the link; APOLO doesn't link it again by itself. The database and its users don't change either way.
The Connection details show what to put in your app's configuration: the host (localhost), the port (3306 for MariaDB and MySQL, 5432 for PostgreSQL), the database, the user and the password.

Importing and exporting
A large database often fails to import through phpMyAdmin, which sends the whole file through the browser. The website's Databases tab imports and exports on the server instead, in the background, for MariaDB and MySQL databases.
Import: upload the dump to the website's folder first (File Manager or FTP). Then Import, choose the database and open the folder with the file. Only folders and files that can be imported are shown: .sql, .sql.gz, .zip (with one .sql or .sql.gz in it), .tar.gz or .tgz, and .bz2. The file is loaded with the rights of that database only: statements that work outside it (such as CREATE DATABASE or USE) are left out and counted in the result.
Export: choose the database and open the folder the file goes to. The file is named after the database and the time (ana_recepti-20261204-190705.sql.gz), compressed, and only the account can read it. A folder inside the website's public folder (such as public_html) gets a warning: anyone who learns the file's address could download the database.
Both run on the server for up to 6 hours, so the panel can be closed. Imports and exports below the databases shows the progress; Stop stops one, and a stopped export leaves no file behind. Two run at a time per account, and one per database. An APOLO update and a server restart wait until they finish. Each finished import and export is in the activity log.
An import goes only into an empty database: created, with no tables, views, procedures or events. Databases that already hold something are shown as not empty and can't be chosen, and the server checks again right before the import starts, so nothing in a database is ever replaced. When every database of the account holds tables, Import offers Create database: create a new one for the website, then import into it.
Before an import APOLO checks that the database server's disk has room for the data, and stops with a message if it doesn't.
Database users
The Users tab lists the account's database users. Create database user makes one; Give a user access grants it full access to another database of the account; Remove access takes it away; Reset password sets a new password (update it in your app's configuration, or the app can't connect). A user can have access to several databases and a database several users; packages limit how many databases an account has and how many users each database may have.
Deleting a database deletes all its tables and data; its database users are kept.
phpMyAdmin and Adminer
Open phpMyAdmin (MariaDB and MySQL) or Adminer (both engines) from a database's actions. You are signed in straight away: APOLO makes a temporary database user for that session, valid for 8 hours and only for the account's own databases, so no password is typed or stored. The tools run on the webmail and tools port, https://<server>:2096/, apart from the panel. Without that port they open on the users' port (2083), never on the administration's.
If phpMyAdmin opens a blank tab, open TCP port 2096 in the server's firewall and in your hosting provider's firewall.
Connecting from your computer
Databases only accept connections from the server itself; your websites and apps use localhost. To work on a database from your computer (a desktop client such as DBeaver, HeidiSQL or TablePlus), connect through an SSH tunnel with the account's SSH access:
# MariaDB/MySQL on your computer's port 3307
ssh -L 3307:127.0.0.1:3306 ana@server1.example.com
Then connect the client to 127.0.0.1:3307 with the database user and password. Most clients can open the tunnel themselves ("SSH tunnel" in the connection settings). SSH access is set per account; see SSH.
Dedicated Redis
Besides the one-click object cache of websites (Caching), an account can turn on Dedicated Redis: its own Redis server with its own port and password, on 127.0.0.1, for caching and queues (Laravel, custom apps, or WordPress set up by hand). Turning it off stops the instance and removes its data.
The database server (administrators)
Databases in the administrator's menu opens the database server: MariaDB (or MySQL) on port 3306 and, when installed, PostgreSQL, each with its version, size, connections and uptime.
- MariaDB 11.4 comes with the installation and works with apps built for MySQL.
- PostgreSQL is installed separately under Services; hosting users can then create PostgreSQL databases.
- Replace engine changes the main engine on port 3306. On a server that already has data, this removes the current engine and its databases; a backup is made first and kept. The new engine gets the databases back one by one, each loaded with rights on that database only, so their views, routines and triggers belong to that database's own loader user afterwards; the users come back with their passwords and rights.

Tuning
- Analysis
- What the server's numbers say since it started: how much is read from memory, data larger than the buffer, how many connections are used or refused, temporary tables written to disk, slow queries, MyISAM tables and the most memory the server could use with every connection busy.
- Presets
- Suggested values for this server's memory and data: Light, Balanced (recommended) and Performance give the databases about 15%, 25% or 40% of the memory (less on servers under 3 GB), shared between MariaDB and PostgreSQL when both are installed. The large buffer (InnoDB's buffer pool, PostgreSQL's shared buffers) gets most of it, but not much more than the data needs.
- Settings
- Each setting with its value, the suggested value and what it does: memory, connections, logs, temporary tables, caches and disk IO. Settings marked restart wait for the next restart.
- Advanced
- APOLO's settings file in an editor, and the server's other configuration files (read only; APOLO's file is read last, so its values win).
Apply and restart writes APOLO's file, checks it with the server itself before restarting (an unknown option or a wrong value is refused), and restarts it. If the database server doesn't start with the new file, the previous settings come back by themselves. History keeps the last 10 changes; Undo puts back the file from before a change. Paths, the socket, the port, the user and the listening address can't be changed here.
Backups of databases
Databases are in every account backup, always whole, and can be restored on their own; extra database backups can run between the nightly ones. See Backups. When a disk is nearly full and a database grows fast, Apolo Pulse looks after its tables.
If an app can't connect
- Check the host (
localhost), the port, the database name with the account's prefix, the user and the password in the app's configuration; Reset password if unsure. - Check that the user has access to the database (Users with access).
- "Too many connections": the database server's connection limit is reached; see Analysis and the presets, and Apolo Pulse, which closes the connections of the user with the most.
- MariaDB doesn't run: start it under Services; its log is in
journalctl -u mariadb.
Something missing or unclear? Ask support or report a bug.