P. Jhon P. Jhon - 1 year ago 75
MySQL Question

PDOException SQLSTATE[28000] [1045] Access denied for user 'homestead'@'localhost'

I am new in Laravel 5.2.

I am getting following error:

SQLSTATE[28000] [1045] Access denied for user 'homestead'@'localhost' (usin
g password: YES)

While I execute following command:

php artisan migrate

I am running application using vagrant on windows PC.
Please let me know why I am getting above error.

Thanks in advance.

Answer Source

You are getting above error because on your .env file. If you open that from your project base directory then you will following default configuration:


Just change above values according to your development environment. Try again, Hopefully that would resolve your issue.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download