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

前端 未结 24 1694
Happy的楠姐
Happy的楠姐 2021-02-03 19:23

I have installed Laravel 5 successfully and changed MySQL credentials in database.php file in config directory to \'

mysql\' => [
            \'driver\'           


        
24条回答
  •  再見小時候
    2021-02-03 19:37

    In my case, it was actually root user permission problem. My Laravel configurations were all perfect, but later I found that it was root user permission problem since my MySQL configs were somehow changed.

    • so i navigated to xampp folder > C:\xampp\mysql\bin
    • searched for my.ini file and opened it in editor then added added skip-grant-tables in following place:

    [mysqld] skip-grant-tables port=3306

    and it worked.

提交回复
热议问题