I use the command php artisan migrate to migrate my db in laravel 5 .. it gives me an error:
exception 'PDOException' with message 'SQLSTATE[HY000] [1045] Access denied for user 'homestead'@'localhost' (using password: YES)'
Sometime in the future. Try to clear your config first
php artisan config:clear.
Close all the terminal /cmd windows and then restart terminal/CMD and this should get rid of the error message. See if it works.
In your Laravel .env file, alter the variables accordingly to match your desired settings.
If you're using something like XAMMP or EasyPHP with a mysql db, perhaps use the following setup
DB_HOST=localhost
DB_DATABASE=mysql
DB_USERNAME=root
DB_PASSWORD=''
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With