Databases and users
Create, adopt and delete databases, add database users, change their passwords and remote access, and read a database's connection details.
A database holds your application's data. A database user is the login an application uses to connect to it. A database can have several users. Open Databases in a server's sidebar, then select a database name to open its page.
The page shows the database name with its engine, its size and when it was created. Under it are five tabs: Overview, Users, Tables, Import & export and Backups. The Users and Tables tabs show a count. The open tab is kept in the address, so a reload or a shared link opens the same tab.
If the engine is stopped, a notice says "engine isn't running, so nothing can connect to this database. Its size and tables can't be read until it's back." Check services opens Services.
Create a database
-
Open the server's Databases and select Create database. From the main sidebar's Databases list, Create database first asks you to choose a Server, then shows the same form.
-
Fill in the dialog Create database ("A new database on this server, with its first user."):

- Database name: letters, numbers and underscores, 1 to 63 characters.
- Engine: the engines installed on the server, for example MySQL 8.0.46.
- Application: shown when the server has applications. Not for an application is the default. Picking one makes the database show on that application's page: "You can change it later." You need View on Application to choose one.
- Character set and Collation: shown for engines that have them. Engine default leaves it to the engine. Choosing a character set offers its collations.
- Create a user for this database: ticked by default, so the new database has a login. Untick it to create the database alone.
- Username: letters, numbers and underscores, 1 to 32 characters. A name
starting with
pg_is refused ("Names starting with pg_ are reserved by PostgreSQL."). - Password: 8 to 255 characters. Generate makes one. Leave it empty and the server makes one for you.
- Allow connections from: This server only, One IP or range (then fill in IP address or range) or Anywhere. See Change who can connect.
-
Select Create. You see "Database name created with user username." or "Database name created."
-
If the server made the password, Central shows it once in Save this password: "Copy it now. You can copy it again later from the user's menu." It shows the username and the password, with Copy username & password and Done. Keep it somewhere safe, such as a password manager.
Create stays clickable. If something is missing, the field says what is needed, for example "Enter a database name." or "Enter a username, or untick “Create a user for this database”."
Adopt a database that already exists
A database that is on the server but not yet known to ServerAvatar can be adopted.
- Select Adopt existing. The dialog Adopt existing databases says "These databases exist on the server but aren't in ServerAvatar yet."
- Choose the Engine. The databases of that engine are listed. If there are none, it says "Nothing to adopt for this engine."
- Tick the databases and select Adopt selected. You see "n databases adopted." You can adopt up to 100 at a time.
Read a database's connection details
Open the database. The Overview tab starts with Connection details: "Point your application at this database."

- A badge shows where the user may connect from, for example This server only.
- Connection string shows the whole string with the password hidden. The copy button copies the real one.
- Server lists the Protocol, Host and Port. Credentials lists the Database, Username and Password. Each has its own copy button.
- .env and wp-config.php copy a ready-to-paste block of settings.
.envis for MySQL, MariaDB and PostgreSQL.wp-config.phpis for MySQL and MariaDB. Both appear only when your role can see the password. - With more than one user, details of one user are shown and a note says "n more users can connect to this database. See the Users tab."
- A view-only role sees the password as "Hidden — your role can't manage databases."
The size is in the page header. The Details card lists Engine (with its version), Last export, Created, Character set, Collation and Used by, the application the database is attached to (see Application databases). Its Health button opens Database health.
Two warnings can appear above these cards:
- No users yet. "No users yet. Add one to connect to this database." with an Add user button.
- A user may connect from anywhere. The notice names the users and says "Anyone who knows the password can connect", with Change remote access.
Add a user
-
Open the database, then the Users tab. It lists Username, Allow connections from, Password (Set or Not known), Host and port and Created.

-
Select Add user.

-
Enter the Username (letters, numbers and underscores, 1 to 32 characters), a Password if you want to choose it (8 to 255 characters, or Generate) and choose Allow connections from.
-
Select Add user. You see "User username added."
Change a password
- On the Users tab, open the user's ⋯ menu (Actions for username) and choose Change password.
- Enter the new password (8 to 255 characters, or Generate) and save. You see "Password for username changed." If the server returns the password, Central shows it once in Save this password, as when you created the user.
Applications that use this user keep the old password in their own settings. Update them too.
Change who can connect
-
Open the user's ⋯ menu and choose Change remote access.

-
Choose Allow connections from:
- This server only: only programs on the server itself.
- One IP or range: one address or a range, for example
203.0.113.10or203.0.113.0/24. It must be an IPv4 address or range, up to 64 characters. - Anywhere: "Anyone who knows the password can connect." The dialog shows this as a warning. Prefer one address or range.
-
Select Save. You see "Access for username updated."
If the server must restart its database service before it can allow remote connections, the dialog adds Restart the database server to allow remote connections, with the server's reason under it. Tick it and save again.
Change at least one field: saving with nothing changed says "Change at least one field."
Copy a password or connection string
If your role may manage databases and the server sent them, the user's ⋯ menu also has Copy password and Copy connection string. You see "Copied".
Delete a user
- Open the user's ⋯ menu and choose Delete user.
- The dialog Delete user name**?** says "Apps using this user can no longer connect." Select Delete.
You see "User name deleted."
Delete a database
Deleting a database removes it and all its users from the server. It can't be undone. Export it first if you may need it.
-
Open the database. At the foot of the Overview tab select Delete database. You can also use Delete in the ⋯ menu of the database's row in the list.

-
Read the dialog: "This removes the database from server, with its n user(s). This can't be undone." If an application uses the database, it adds "application uses this database. The site stops working until it gets another one."
-
If the organization owner turned on delete protection, type the database name where it says Type name to confirm.
-
Select Delete database. You see "Database name deleted."
See the tables
The Tables tab lists the tables with Name, Rows and Size, and the count and total size under the title (for example "12 tables · 656 KB").

- Search tables filters the list. You can sort by Name, Rows and Size.
- An empty database says "No tables yet": "Tables show up here once your application or an import creates them."
- When phpMyAdmin is installed on the server, a hint says "To optimize or repair a table (useful after deleting a lot of rows), open it in phpMyAdmin and use its Operations tab."
- For MySQL and MariaDB, View slow query log opens the server's slow query log when it is on and you may view logs: "Slow queries are recorded in the server's slow query log, which covers every database on this server."
Limits
- Database name: 1 to 63 characters, letters, numbers and underscores.
- Database username: 1 to 32 characters, letters, numbers and underscores.
pg_names are reserved for PostgreSQL. - Database user password: 8 to 255 characters.
- Remote host: one IPv4 address or an IPv4 range with a prefix from 0 to 32, up to 64 characters.
- Adopt: up to 100 databases at a time.
Who can do this
- View on Databases (
server.database) opens the list, the database page, its users (without passwords), the tables and the exports. - Manage is needed to create, adopt and delete databases, to add, change and delete users, and to copy passwords and connection strings.
- Delete protection, set by the organization owner, makes a delete ask for the name. See Delete protection.
Common errors
- The database name must be 1 to 63 characters: letters, numbers and underscores.
- The username must be 1 to 32 characters: letters, numbers and underscores.
- The username can't start with pg_. That's reserved for PostgreSQL.
- Enter an IPv4 address or range, like 203.0.113.10 or 203.0.113.0/24.
- Change at least one field. Nothing was changed in the user's form.
- The server cannot do this right now. Wait for the current task to finish and try again. Another task is running on the server.
- You have reached the number of databases you can create on this server. A Control Panel customer is at their limit.