SQLSTATE[HY000] [1045] Access denied for user ‘homestead’@’localhost’ (using password: YES)

SQLSTATE[HY000] [1045] Access denied for user ‘homestead’@’localhost’ (using password: YES)

When I run the command “php artisan migrate” I get the following error message:

[PDOException]  SQLSTATE[HY000] [1045] Access denied for user ‘homestead’@’localhost’ (usin g password: YES)       

Solution:

  1. make sure that you have changed the configs from /Applications/AMPPS/www/blog/config/database.php
  2. make sure that in /Applications/AMPPS/www/blog/.env you don’t have other values that in database.php. If so.. just delete them from .env