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


i new in laravel 5.2.

i getting following error:

[pdoexception]  sqlstate[28000] [1045] access denied user 'homestead'@'localhost' (usin  g password: yes) 

while execute following command:

 php artisan migrate  

i running application using vagrant on windows pc. please let me know why getting above error.

you getting above error because on .env file. if open project base directory following default configuration:

db_connection=mysql db_host=localhost db_database=homestead db_username=homestead db_password=secret 

just change above values according development environment. try again, resolve issue.


Comments

Popular posts from this blog

php - trouble displaying mysqli database results in correct order -

depending on nth recurrence of job in control M -

sql server - Cannot query correctly (MSSQL - PHP - JSON) -