Create a database
The create form from start to finish, covering the name, the engine, the application it backs up with, the user that comes with it, and where that user may connect from.
Applications that need a database get one when you create them, so this form is for the extra ones: a second database for an application, something for a script, or a database that should exist before the code that uses it.
The panel creates the database and a user for it in one step, then shows a
connection string. You do not have to write GRANT statements or run
createuser.
Before you start
- An engine must be running. If none is, Create database is disabled with the reason Install a database engine first. See Database engines.
- Decide where it will be connected from. The panel opens firewall ports to match. The safe default is This server only.
- You need Database → Manage access.
Create a database
Open Databases and click Create database. The form opens as a dialog.
Type the Database name. It is the real name on the engine: letters, numbers
and underscores, up to 63 characters, for example acme_reports. The panel
refuses the names the engines keep for themselves (mysql, information_schema,
performance_schema, sys, postgres, admin, local, config and similar)
and a name that is already used on the same engine.
If a database of that name already exists on the server outside the panel, the panel says so. Choose another name, or add the existing one from the banner on the Databases screen.
Choose the Engine. This field only appears when more than one engine is running. With one engine there is nothing to choose. The engine cannot be changed afterwards: to move a database to another engine, create it again.
Choose what uses it, under Used by. Pick the application this database belongs to, or leave Not linked to an application. The list is searchable. Applications that already have a database are marked Already has a database, and applications that cannot use the chosen engine say which engines they accept.
This decides which application's backups include the database. It does not connect the application to it: the application keeps using whatever its own configuration says. A database that is not linked is in no backup.
Leave Also create a user on, unless the database should have no login of its
own. A database needs a user before anything can connect. The panel fills in a
random username such as db_mhu7amwjak. Replace it with one you will recognise
in a connection string later: letters, numbers and underscores, up to 32
characters. The reserved account names (root, postgres and the engines'
internal accounts) and any name starting with pg_ are refused.
The password is not a field. The panel generates a strong one and shows it once, at the end.

Choose where the user can connect from. This writes a firewall rule as well as the permission, so it is the one setting here with a security consequence.
| Option | What it does | When to use it |
|---|---|---|
| This server only | The user may connect from this server only. The database port stays closed to the outside. | The default, and right for an application on this same server. |
| From one address | Opens the database port in the firewall for the address you enter. | A separate application server, or your office address for a migration. |
| From anywhere | Opens the database port to the whole internet. | Almost never. Anyone who guesses the password can connect. |
From one address adds the field IP address. Enter one IPv4 address or an
IPv4 range, for example 203.0.113.10 or 203.0.113.0/24. The panel refuses
0.0.0.0, addresses starting with 127. and a range with /0, because those
are not remote addresses.

From anywhere means from anywhere
There is no second gate behind this option: no allow-list, no VPN. If you need remote access for one job, use From one address and remove it when the job is done.
If the engine only listens on this server, the first remote user asks Restart the database server? The engine has to restart to accept connections from other addresses, and applications using it lose their connection for a moment. Click Restart and continue to go on, or Cancel.
Open Advanced only if you need a specific character set. It holds Character set and Collation (Encoding and Locale on PostgreSQL), both set to Server default. Collation stays disabled until you choose a character set (Choose a character set first). The panel refuses a collation that does not belong to the chosen character set. MongoDB has no Advanced section.

Server default is almost always right. On MySQL and MariaDB it is utf8mb4,
which current applications expect. Change it only to match a database you are
about to import.
Click Create database. After a moment the dialog turns into acme_reports is ready, with everything an application needs.

The Connection string is the whole connection on one line, which is what most
frameworks want in a DATABASE_URL. Below it are Host, Port,
Database, Username and Password, each with its own copy button. The
password is hidden. Use the eye to show it and the copy button to copy it.
Copy the password now
This dialog is the only place the generated password is shown in full. The database's own page shows it hidden afterwards. The copy buttons still copy the real value there. If you lose it, set a new one with Change password in the Users tab. See Manage a database.
A note on the escaped password
Under the fields the dialog says The password is escaped inside the connection string, so it looks different there. Both are correct.
Generated passwords can contain characters that are not allowed unescaped inside a
URL, and those are written as % codes in the connection string. The
Password field has the real password, for a form or config setting that takes
the password on its own. The connection string has the URL-encoded one, which
belongs in a mysql:// or postgresql:// URL. Do not "fix" either.
What happens next
Done closes the dialog and returns to the list, where the new database is a row. Open database goes straight to its page. See Manage a database.
If you turned Also create a user off, the dialog says The database was created. and warns This database has no user yet, so nothing can connect to it. Add one from the database's Users tab.
Limits
- Database name: letters, numbers and underscores, 1 to 63 characters.
- Username: letters, numbers and underscores, 1 to 32 characters.
- Passwords generated by the panel are random. A password you set later must have 8 to 255 characters.
Who can do this
- Database → Manage. A role with View only does not see the button.
Common errors
- The database could not be created. A generic failure. Read the message the panel shows under the field that caused it.
- MySQL is not running on this server. Install or start it on the Databases page first, or choose an engine that is running. The engine you chose is not answering. Start it in Services.
- A database named "…" already exists on the server, outside the panel. Choose another name, or bring it into the panel with Sync. Use another name, or add it from the banner on the Databases screen.
- A database user named "…" already exists. Choose another name. Usernames are unique on the server.
- The selected collation does not belong to the chosen character set. Pick a collation from the list after choosing the character set.
- Enter an IPv4 address or range, such as 203.0.113.5 or 203.0.113.0/24. The address for From one address is not valid.
- That address is not a remote one. Use "Local" for this server or "Anywhere"
for every address. You entered
0.0.0.0, a127.address or a/0range. - …already has the database … attached. Detach that one first, or attach this database to another application. An application can have one database.
- …cannot use a MongoDB database. It accepts MySQL / MariaDB. The application and the engine do not fit. Choose another application, or leave Used by empty.
Related
Database engines
Which engines OSS Panel supports, how to add one from the panel, and how to set or change the MySQL and MariaDB root password.
Manage a database
The page of one database, covering connection details, the application it is linked to, users, tables, import and export, its backups, and deletion.