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

前端 未结 5 704
春和景丽
春和景丽 2021-01-12 19:57

Why is the following error occurring?

QueryException SQLSTATE[HY000] [1045] Access denied for user \'homestead\'@\'localhost\' (using password: YES)

5条回答
  •  抹茶落季
    2021-01-12 20:31

    It's either you edit a wrong file or you have not saved the .env yet. Because in your error message, it looks like you access the database using user homestead on localhost database, not root on student_management. Make sure you edit the correct .env, not .env.example. cheers

提交回复
热议问题