Set your values in .env :
DB_HOST=localhost
DB_DATABASE=mybase
DB_USERNAME=myname
DB_PASSWORD=mypassword
But are you on forge ?
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
When I try to migrate the database tables, I get the following error:
[PDOException] SQLSTATE[HY000] [1045] Access denied for user 'forge'@'localhost' (using pa ssword: NO)
I created the .env file and just change the DB_DATABASE and the APP_KEY,
I don`t know where the heck forge comes from?
in bootstrap/app.php did you uncomment this line:
Dotenv::load(__DIR__.'/../');
Please or to participate in this conversation.