laravel中用户'root'@'localhost'的访问被拒绝(使用密码:是)

时间:2019-05-31 12:33:27

标签: laravel

我删除编号为5的行号5,然后添加另一行,但编号为6的行具有AUTO_INCREMENT。我在phpmyadmin的“操作”中将auto_increment调整为5,但是当我回到应用程序时出现此错误

SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) (SQL: select * from `users` where `id` = 2 limit 1) (View: C:\xampp\htdocs\lsapp\resources\views\inc\navbar.blade.php) (View: C:\xampp\htdocs\lsapp\resources\views\inc\navbar.blade.php) (View: C:\xampp\htdocs\lsapp\resources\views\inc\navbar.blade.php)

1 个答案:

答案 0 :(得分:0)

再次检查您的密码,它是phpmyadmin的密码,然后尝试DB_HOST=localhostAPP_URL=