ServerAvatarDocs
Databases

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.

OSS Panel manages four engines: MySQL, MariaDB, PostgreSQL and MongoDB. A server can run one of MySQL or MariaDB, and it can also run PostgreSQL and MongoDB beside it.

EngineWhat it suitsWhere it comes from
MySQLThe usual choice. Runs WordPress, Laravel and most PHP apps.Ubuntu's package list.
MariaDBA drop-in replacement for MySQL: the same commands and the same apps.Ubuntu's package list.
PostgreSQLStrong on complex queries and on keeping data consistent.Ubuntu's package list.
MongoDBStores documents instead of tables. Common with Node.js apps.MongoDB's own package repository.

MySQL or MariaDB, not both

MySQL and MariaDB use the same port. Installing the second one removes the first, together with the server its databases live on. The panel therefore does not offer one while the other is installed (Can't be added while MySQL is installed. Only one of the two can run on this server.). Decide before you create databases you care about.

MongoDB publishes packages per Ubuntu release. If it has published none for this server's release, the panel refuses the install and says so (MongoDB has not published packages for … yet). Nothing is wrong with the server. Use another engine, or try again once MongoDB ships a build.

The engine row

The card at the top of Databases shows every engine the panel is working with:

What you seeWhat it means
A green dot, the name and a versionThe engine is running. Hover for the full version string.
A spinner and Starting…An install is in progress.
Not reachable, with Check servicesThe engine is installed but not answering. Open Services and start it.
Couldn't installThe last install failed. See If an install fails.

The first engine is installed while you set up the server, from the setup checklist or by the installer. See First login.

Add an engine

Open Databases and click Add engine in the engine row. Choose the engine from the menu. If only one engine can be added, the button carries its name instead, for example Install MongoDB, and a click on it goes straight to the confirmation.

The Add engine menu open on the Databases screen, listing MongoDB and PostgreSQL

Only engines that can be added are listed. An engine that is already installed, or MariaDB or MySQL while the other one is present, is left out.

Confirm. The dialog asks Install MongoDB? and says the server will download and set it up in the background. For MySQL and MariaDB it adds the warning that you can have one of them but not both.

The Install MongoDB? dialog with Cancel and Install buttons

Click Install. A toast says Installing MongoDB. This takes a few minutes. and a progress card appears under the engine row. It shows the current step, when the install started and a progress bar. Installation output opens the log of the install as the server writes it.

The install runs on the server. The card says Installation continues in the background. You can leave this page. If the page loses the progress updates, it says so and keeps checking. If the install takes longer than expected, it says This is taking longer than usual. It may still be working.

Only one engine installs at a time. While one is installing, the others cannot be added (Another engine is installing. Wait for it to finish.).

Wait for the chip to show a green dot and a version. The engine is ready when it does.

What a new engine changes

  • Create database lists the engine in its Engine field. The field only appears when more than one engine is running.
  • Database health gets a tab for it.
  • Services lists it, so you can stop, start and restart it with the rest.

If an install fails

The progress card turns into Database engine installation failed. It shows the reason, a Support reference and the Installation output. Click Try again to run it again. The button is missing when the reason cannot be fixed by retrying, for example when another engine already owns the port.

When no engine is running

If no engine is running, Databases shows Database engines instead of a list of databases: one card per engine with what it suits, and an Install button. The first-choice card (MySQL) carries a Recommended badge. A card that cannot be installed says why, for example Has to be installed manually — it isn't in the server's package list.

An engine that is installed but not answering shows Not reachable, a Check services link and a Connection button.

Connection opens the settings the panel uses to sign in to the engine:

FieldWhat it is
Connect usingNetwork address (host and port, the usual choice) or Local socket (this server only), a local file that often works when a password login does not.
Host, PortFor a network address. Port 1 to 65535: 3306 for MySQL and MariaDB, 5432 for PostgreSQL.
Socket pathFor a local socket. Leave the default unless the engine was installed somewhere unusual.
Username, PasswordThe account the panel signs in with. Leave Password empty to keep the saved one.

Test connection tests the saved settings, so click Save first. The panel answers Connected. The panel can reach the database server. or Could not connect with these settings.

The root password

MySQL and MariaDB have a root account. The panel can set its password, or change it. Root password in the engine row opens the dialog. It is only shown while MySQL or MariaDB is running.

The MySQL root password dialog with New password and Confirm password fields, a Generate link and the Set root password button

Click Root password. The dialog tells you where things stand:

  • The panel doesn't know a root password yet. Root signs in only as this server's own root account. Nothing has been set from the panel.
  • The panel has root's password saved. Set a new one to change it.

Enter the new password twice, in New password and Confirm password, or click Generate. Use 12 to 128 characters. Spaces and quotes are fine, line breaks and other control characters are not. Copy password copies it. Copy it before you save: the panel will not show it again.

Click Set root password (or Change root password when one is already saved). The panel saves the password encrypted so it can still reach root, and confirms with MySQL root password saved.

If the panel cannot sign in as root with the password it knows, the dialog adds a Current root password field: The panel can't sign in to MySQL as root with the password it knows. Enter root's current password once; it isn't saved. Enter it and save again.

What changes differs by engine:

  • MariaDB: root can still sign in as this server's own root account, so the panel and the system tools keep working.
  • MySQL: after this, root signs in only with this password.

Close remote access

When you add a database user that may connect from another address, the panel opens the engine (MySQL, MariaDB or PostgreSQL) to outside connections. Deleting the last such user, or setting it to local, removes its firewall rule, but the engine still listens on every address: closing that needs a restart, so the panel never does it by itself.

The Databases screen then shows a note under the engine bar: MySQL still accepts connections from other addresses, but no database user needs that any more.

  1. Click Close remote access in the note.
  2. The dialog Close remote access to MySQL? says MySQL restarts, so applications using it lose their connection for a moment. Afterwards only this server can connect. Click Restart and close.
  3. You see MySQL now accepts connections from this server only.

If the server's own configuration opened the engine, not the panel, the note says MySQL accepts connections from other addresses because of the server's own settings. The panel leaves that as it is. and there is no button. Only roles with Manage on databases see the button; others see the note only. The activity log records Closed MySQL to outside connections.

Limits

  • The root password: 12 to 128 characters, no control characters. The panel accepts five root-password requests a minute.
  • A root-password change runs one at a time. If one is already running, you are told to wait a moment.

Who can do this

  • Database → Manage is needed to add an engine, open Connection and set the root password. Database → View shows the engine row only.

Common errors

  • Can't be added while MySQL is installed. Only one of the two can run on this server. (or the same with MariaDB). Only one of MySQL and MariaDB can be on a server.
  • MongoDB has not published packages for … yet — MongoDB has no build for this Ubuntu release. Choose another engine.
  • The panel cannot install this database engine yet. Install it yourself and the panel will detect it. — the engine is not in the panel's install list. Install it over SSH and reload the page.
  • The database server refused this password because of its password policy. Use a longer password with upper- and lower-case letters, digits and a symbol. — pick a stronger root password.
  • The new root password could not be confirmed, so root's previous login was put back. Nothing was changed. — try again.
  • The panel could not sign in to MySQL as root — neither as the server's root account nor with a saved root password. Enter root's current password to change it. — fill in Current root password.
  • Signing in as root with this password failed. Enter root's current password. — the current password was wrong.
  • MySQL did not answer, so the root password was not changed. — check that the engine is running in Services, then try again.
  • The root password is already being changed. Wait a moment and try again.
  • Only MySQL and MariaDB have a root password the panel can store.
  • Remote users still need MySQL to accept outside connections: … Delete them or set them to Local first. — a remote user is left; remove it or make it local.
  • MySQL already accepts local connections only. — nothing to close.
  • Another change to MySQL's remote access is still running. Try again in a moment.

On this page