Skip to Content
Databases

Manage MySQL and MariaDB

Create databases and users, assign privileges and check connection details.

Many applications store their content in a database. Setting one up involves connecting that storage to a user so the application can access it with the appropriate permissions.

Databases and users are separate

Open Domains → your website → Databases. The MySQL section manages MySQL/MariaDB databases. A database stores data; a database user has its own password and privileges on one or more databases. This is separate from your portal or WordPress account.

Database overview with two engines
Database overview with two engines

Add a database

First create the database and associate an existing or new user, then check that the connection between them is correct.

Use lowercase letters, numbers, _ or $. A prefix displayed by the form automatically becomes part of the full name. The limit is 64 characters including the prefix.

Select existing users or choose Create new user. A new username may contain at most 32 characters including its prefix. Use a unique password of at least ten characters with lowercase, uppercase, a number and a special character. Keep the default authentication choice unless your application requires a specific plugin.

Check both the database and its assigned users. If creation succeeds but assigning privileges fails, open the management view and repair that assignment; do not create the same account again.

Manage privileges

Click a database. Under Users, add an existing user, create one or edit privileges. All database privileges grants all available privileges. Clear it to choose individual privileges, such as SELECT for read access. Revoke access removes the assignment, not the database user itself.

The Users section in the database list opens user management, including the hidden password and accessible databases. After resetting a password, update the application configuration; otherwise the website may lose its database connection.

Connect to the database

The database management page displays its Unix socket path and current TCP address under Connection details. Use those values for your application. Do not assume the webserver IP or localhost is correct: the right connection depends on where the application runs.

For external connections, open the database user and add your client’s specific public IPv4 or IPv6 address under IP addresses for external access. This does not grant database privileges or guarantee that an external firewall permits the connection. Remove access you no longer need.

Deletion is permanent

Deleting a database removes all its data. Deleting a user can affect several applications sharing that account. First create a SQL export or check that a usable backup exists.

Use phpMyAdmin for tables and queries. PostgreSQL has separate management.

Assign a new database to an existing user
Assign a new database to an existing user

On this page