首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >即使在成功迁移之后,Laravel数据库连接错误

即使在成功迁移之后,Laravel数据库连接错误
EN

Stack Overflow用户
提问于 2020-03-29 22:11:33
回答 1查看 118关注 0票数 1

我在拉拉维尔七号。

我不知道为什么我总是犯这个错误

消息:“拒绝用户'root'@'localhost‘(使用密码:否)的SQLSTATEHY000访问(SQL: Insertinvisitors)

在控制台/网络选项卡上。

我有正确的数据库吐露。我运行了成功迁移,还验证了本地数据库中存在表。

代码语言:javascript
复制
php artisan migrate                                                                                             
Migration table created successfully.                                                                                         
Migrating: 2015_04_20_182204_create_users_table                                                                               
Migrated:  2015_04_20_182204_create_users_table (0.17 seconds)                                                                
Migrating: 2015_04_21_140858_create_table_subscribes                                                                          
Migrated:  2015_04_21_140858_create_table_subscribes (0.07 seconds)                                                           
Migrating: 2015_05_13_134411_create_contacts_table                                                                            
Migrated:  2015_05_13_134411_create_contacts_table (0.06 seconds)                                                             
Migrating: 2015_05_13_135240_create_web_directories_table                                                                     
Migrated:  2015_05_13_135240_create_web_directories_table (0.02 seconds)                                                      
Migrating: 2015_05_15_195423_alter_table_web_directories                                                                      
Migrated:  2015_05_15_195423_alter_table_web_directories (0.02 seconds)                                                       
Migrating: 2015_06_02_223636_alter_table_contacts                                                                             
Migrated:  2015_06_02_223636_alter_table_contacts (0.01 seconds)                                                              
Migrating: 2015_06_03_142550_alter_table_users_2                                                                              
Migrated:  2015_06_03_142550_alter_table_users_2 (0.1 seconds)
Migrating: 2015_06_08_011835_create_logs_table
Migrated:  2015_06_08_011835_create_logs_table (0.13 seconds)
Migrating: 2015_06_08_151121_add_logo_path_to_users_table
Migrated:  2015_06_08_151121_add_logo_path_to_users_table (0.07 seconds)
Migrating: 2015_06_09_001047_add_cover_path_to_users_table
Migrated:  2015_06_09_001047_add_cover_path_to_users_table (0.05 seconds)
Migrating: 2015_06_12_111009_alter_table_users_4
Migrated:  2015_06_12_111009_alter_table_users_4 (0.11 seconds)
Migrating: 2015_08_19_134434_create_guests_table
Migrated:  2015_08_19_134434_create_guests_table (0.04 seconds)
Migrating: 2015_08_27_153239_alter_table_contacts_2
Migrated:  2015_08_27_153239_alter_table_contacts_2 (0.1 seconds)
Migrating: 2015_08_28_135733_create_table_blogs
Migrated:  2015_08_28_135733_create_table_blogs (0.15 seconds)
Migrating: 2015_09_16_114434_drop_web_directories_table
Migrated:  2015_09_16_114434_drop_web_directories_table (0.04 seconds)
Migrating: 2015_10_07_153216_create_table_visitors
Migrated:  2015_10_07_153216_create_table_visitors (0.02 seconds)
Migrating: 2016_03_18_045444_alter_guests_table_2
Migrated:  2016_03_18_045444_alter_guests_table_2 (0.06 seconds)
Migrating: 2016_03_19_214047_alter_guests_table_3
Migrated:  2016_03_19_214047_alter_guests_table_3 (0.04 seconds)
Migrating: 2017_02_27_110735_create_images_table
Migrated:  2017_02_27_110735_create_images_table (0.02 seconds)
Migrating: 2017_03_02_114249_create_skills_table
Migrated:  2017_03_02_114249_create_skills_table (0.01 seconds)
Migrating: 2017_03_22_220545_alter_images_table
Migrated:  2017_03_22_220545_alter_images_table (0.17 seconds)
Migrating: 2017_04_11_112639_alter_guests_table_4_11_2017
Migrated:  2017_04_11_112639_alter_guests_table_4_11_2017 (0.14 seconds)
Migrating: 2017_05_11_132108_create_youtube_downloads_table
Migrated:  2017_05_11_132108_create_youtube_downloads_table (0.02 seconds)
Migrating: 2017_08_17_155101_create_portfolios_table
Migrated:  2017_08_17_155101_create_portfolios_table (0.02 seconds)
Migrating: 2018_02_15_090145_create_portfolio_images_table
Migrated:  2018_02_15_090145_create_portfolio_images_table (0.01 seconds)
Migrating: 2018_02_26_010123_add_color_to_skill
Migrated:  2018_02_26_010123_add_color_to_skill (0.06 seconds)
Migrating: 2018_08_21_113930_clean_up_youtube
Migrated:  2018_08_21_113930_clean_up_youtube (0.05 seconds)
Migrating: 2018_08_21_121732_clean_up_subscribe
Migrated:  2018_08_21_121732_clean_up_subscribe (0.05 seconds)
Migrating: 2018_08_28_171714_create_instagram_table
Migrated:  2018_08_28_171714_create_instagram_table (0.01 seconds)
Migrating: 2019_03_20_164005_alter_users_table_3_20_2019
Migrated:  2019_03_20_164005_alter_users_table_3_20_2019 (0.1 seconds)
Migrating: 2019_03_26_143650_create_configs_table
Migrated:  2019_03_26_143650_create_configs_table (0.03 seconds)
Migrating: 2019_04_18_142703_create-fingerprinting_table
Migrated:  2019_04_18_142703_create-fingerprinting_table (0.03 seconds)
Migrating: 2019_09_05_192307_make_ddos_table
Migrated:  2019_09_05_192307_make_ddos_table (0.02 seconds)
Migrating: 2019_09_24_093912_create_ssh_table
Migrated:  2019_09_24_093912_create_ssh_table (0.02 seconds)

我是否面临着某种类型的缓存问题?

我甚至试着

代码语言:javascript
复制
⚡️  php artisan cache:clear
Application cache cleared!
⚡️  php artisan config:clear
Configuration cache cleared!
⚡️  php artisan view:clear
Compiled views cleared!

产生同样的结果。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2020-03-29 22:23:10

重新启动本地服务器了吗?

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/60921389

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档