Skip to content

Databases

Ali Çömez | Slaweally edited this page Dec 2, 2026 · 3 revisions

Databases

Connection details

MySQL / MariaDB PostgreSQL Redis Memcached
Host 127.0.0.1 127.0.0.1 127.0.0.1 127.0.0.1
Port 3306 5432 6379 11211
User root postgres — —
Password (empty) (none, local trust) — —

Ports can be changed in Settings → Ports. Everything listens on 127.0.0.1 only, so nothing is reachable from your network.

Laravel .env example

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=my_shop
DB_USERNAME=root
DB_PASSWORD=

Project databases

A project's database has its name with - replaced by _ (my-shop → my_shop). Create, back up or delete it in the project's settings row (Projects). Deleting always takes a backup first.

Managing databases

  • Database manager: choose phpMyAdmin, Adminer, HeidiSQL or DBeaver in Components → Database manager (or Settings). phpMyAdmin and Adminer are downloaded once and run at localhost/phpmyadmin / localhost/adminer, signed in automatically; HeidiSQL and DBeaver are used when installed on your computer. The database icon on the MySQL plate, on each project row and on the project's Database line opens it on that database.
  • Root password: Configuration → MySQL → Root password (empty by default).
  • In a terminal: mysql -u root / psql -U postgres with the command line shims.
  • Any GUI tool (HeidiSQL, DBeaver, TablePlus…) with the details above.

Data folders

Service Folder
MySQL 8.4 data\mysql-8.4
MariaDB 11.4 data\mariadb-11.4
PostgreSQL 18 data\postgresql-18
Redis data\redis
Mailpit data\mailpit

MySQL 8.4.3 → 8.4.5 keeps the same data; 8.0 ↔ 8.4 or MySQL ↔ MariaDB use separate folders because their files are not compatible.

Safe shutdown

Locarust never kills a database. MySQL gets an SQL SHUTDOWN (MariaDB its shutdown event), PostgreSQL pg_ctl stop -m fast; only if one does not stop within a minute is it terminated. This is the main reason tables don't get corrupted.

Mail (Mailpit)

Turn Mailpit on in Components. PHP's mail() then goes to Mailpit instead of the internet; open the inbox from the mail icon on its plate or http://127.0.0.1:8025. SMTP for frameworks: 127.0.0.1:1025, no authentication.

Clone this wiki locally