手机看片精品高清国产日韩,色先锋资源综合网,国产哺乳奶水91在线播放,乱伦小说亚洲色图欧洲电影

幫助中心 >  技術知識庫 >  網站相關 >  建站知識 >  php網站報錯[IlluminateDatabaseQueryException] SQLSTATE[HY000] [1045] Access denied for user

php網站報錯[IlluminateDatabaseQueryException] SQLSTATE[HY000] [1045] Access denied for user

2024-05-30 14:38:48 6658

php網站報錯[IlluminateDatabaseQueryException] SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using pas sword NO) (SQL select from information_schema.tables where table_schema = 


藍隊云小課堂:

[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

更多小知識,可聯系藍隊云一起探討。


提交成功!非常感謝您的反饋,我們會繼續努力做到更好!

這條文檔是否有幫助解決問題?

非常抱歉未能幫助到您。為了給您提供更好的服務,我們很需要您進一步的反饋信息:

在文檔使用中是否遇到以下問題: