Reputation: 505
Here is my Laravel
Database config
DB_CONNECTION=mysql
DB_HOST=localhost
DB_PORT=8889
DB_DATABASE=carnet
DB_USERNAME=root
DB_PASSWORD=root
But i keep getting this error
SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES)
Upvotes: 1
Views: 1790
Reputation: 1027
Try changing the host from localhost to 127.0.0.1 and check if it connects.
Upvotes: 1