解决 Class not found和Base table or view not found: 1051 问题

简介: 1、解决class not found的方法: 如果你用的是homestead虚拟机,那么,你要到虚拟机下执行: composer dump-autoload 2、解决Base table or view not found: 1051的方法 mysql> drop database hom...

1、解决class not found的方法:

如果你用的是homestead虚拟机,那么,你要到虚拟机下执行:

composer dump-autoload

2、解决Base table or view not found: 1051的方法

mysql> drop database homestead;

mysql> create database homestead;

php artisan migrate

 

总结:当我用1的方法解决了1问题的时候,之后又出现了2的问题,然后再用2的方法解决了!!!

参考:

http://stackoverflow.com/questions/32417358/laravel-5-1-migration-error

https://laravel.com/docs/5.2/migrations#running-migrations

目录
打赏
0
0
0
0
5
分享
相关文章
ADD failed: file not found in build context or excluded by .dockerignore: stat irap_rule_center: fil
ADD failed: file not found in build context or excluded by .dockerignore: stat irap_rule_center: fil
【已解决】Error: Element type is invalid: expected a string (for built-in components) or a class/function
Error: Element type is invalid: expected a string (for built-in components) or a class/function
2634 0
【已解决】Error: Element type is invalid: expected a string (for built-in components) or a class/function
SQLSTATE[42S02]: Base table or view not found: 1146 Table ‘thinkphp.test‘ don‘t exsit
SQLSTATE[42S02]: Base table or view not found: 1146 Table ‘thinkphp.test‘ don‘t exsit
483 0
Unknown custom element: <add-employee> - did you register the component correctly? For red cursive c
原因: 1.组件名没写对(导入和注册不对应) 2.components少写了个s 3.组件命名最好是驼峰命名 4.导入时语法错误 5.代码中有两个components,后一个的值把前一个覆盖了 6.组件直接循环套用了
116 0
|
11月前
|
报错 Package ‘oniguruma‘, required by ‘virtual:world‘, not found
报错 Package ‘oniguruma‘, required by ‘virtual:world‘, not found
582 0
|
11月前
|
Error:(15, 13) java: No property named “id” exists in source parameter(s). Did you mean “null”?
Error:(15, 13) java: No property named “id” exists in source parameter(s). Did you mean “null”?
286 1
Error:(15, 13) java: No property named “id” exists in source parameter(s). Did you mean “null”?
Error:(15, 13) java: No property named “id” exists in source parameter(s). Did you mean “null”?
No package ‘libmate-menu‘ found
No package ‘libmate-menu‘ found
77 0
解决办法:error: <item> inner element must either be a resource reference or empty.
解决办法:error: <item> inner element must either be a resource reference or empty.
254 0
Cannot find source code based button in SE24
When you are logging on to customer system for incident handling, you want to switch to source code to perform some keyword search. However, you could not find button “Source code based builder” in toolbar, with following warning message: ———————————————— 版权声明:本文为CSDN博主「汪子熙」的原创文章,遵循CC 4.0 BY-SA版权协
101 0
Cannot find source code based button in SE24
AI助理

你好,我是AI助理

可以解答问题、推荐解决方案等