Repository navigation
Databases
| 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=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.
- In the browser: install phpMyAdmin or Adminer from Apps; both sign in automatically.
- In a terminal:
mysql -u root/psql -U postgreswith the command line shims. - Any GUI tool (HeidiSQL, DBeaver, TablePlus…) with the details above.
| 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.
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.
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.
Locarust · MIT © Ali Çömez (Slaweally) · Powered by Megabre · Download · Guide · Discussions
Getting started
Using Locarust
- Projects
- Apps
- Configuration
- Components and PHP extensions
- Databases
- Backups
- Publishing to a server
- Local HTTPS
- Command line
- Settings
Help
🇹🇷 Türkçe