Database connection
Veldriq
Symptom: installer or app cannot connect (SQLSTATE, “Access denied for user”, unknown database).
Likely cause: wrong host/user/password; database missing; socket vs TCP.
- Credentials in
.env(DB_HOST,DB_DATABASE,DB_USERNAME,DB_PASSWORD). Host127.0.0.1vslocalhost—localhostoften means a Unix socket the PHP user cannot see. - The database exists. Creating
.envdoes not create the schema. - After ENV changes: from
backend/runphp artisan config:clear.
- Create the database; fix
.env; retry the installer orphp artisan migrate(pending only). - Never
migrate:freshto “retry” production. Neverdb:wipe. - Do not paste database passwords into public tickets.
Related: Installer, Requirements.