You need to provide database credentials ( database name, user, password ) inside your .env file probably.
DB_HOST=localhost
DB_PORT=3306
DB_DATABASE=dbname
DB_USERNAME=dbuser
DB_PASSWORD=dbpassword
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I am new to Laravel and when I try to execute php artisan migrate, below error comes in cmd. (I am using wamp in win 8.1)
In Connection.php line 664:
SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) (SQL: select * from information_schema.tables where table_schema = laravel and table_name = migrations)
In Connector.php line 67:
SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES).
Any help is much appreciated. Thank you
Please or to participate in this conversation.