Docs

Databases

How your sites sign in, how to look inside your databases, and how to switch between MariaDB and MySQL.

The login for your sites

Host127.0.0.1
Port3306, or the database port in Settings
Userroot
PasswordShown in Settings, with a Copy button

Local.Den makes a random password at setup. To use the one your sites already have, press Change next to it in Settings. The database server must be running.

Looking inside: Adminer or phpMyAdmin

The Databases button on the Home page opens your database manager, already signed in. It only answers from your own computer.

  • Adminer: one small, fast page.
  • phpMyAdmin: the one most people know.

Change it any time in Settings, under Database manager.

MariaDB or MySQL

One database server runs at a time. Each keeps its own databases, its own settings file and its own password.

To switch, choose the other one in Settings, under Database server. Leave Copy my databases over ticked and press Switch. Local.Den downloads the other server if needed, copies every database and shows the result for each:

  • Copied: it is there now.
  • Already there: a database with that name existed and was left alone.
  • Failed: the reason is shown. The other databases are not affected.

Nothing is deleted when you switch, so you can always switch back. If the new server does not start, Local.Den goes back to the old one by itself.

Safety copies

Local.Den saves your databases as .sql files in the backups folder before every database server update and whenever you switch or import. Press Backups in Settings to see them.

These are safety copies for those moments, not a daily backup. For work you cannot lose, keep your own backups too.