[Illuminate\Database\QueryException] SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using pas sword: NO) (SQL: select * from information_schema.tables where table_schema = la


[Illuminate\Database\QueryException]
SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using pas
sword: NO) (SQL: select * from information_schema.tables where table_schema
= laravel_test1 and table_name = migrations)

 

通常是缓存造成的

在命令行中进入程序根目录,执行下列语句。

php artisan cache:clear
php artisan config:clear
php artisan serve

 然后在执行 php artisan migrate

 

前提是检查完了 .env和config/database.php


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM