Laravel使用php artisan migrate报错: [PDOException] SQLSTATE[42S02]: Base table or view not found: 114
2017-08-21 13:02
627 查看
如果出现上面的问题,处理方式很简单,根据提示可知,基础表或者视图XX不存在,这时我们需要检查一下是否创建了数据表,也就是使用Schema::create()创建了报错的那张表,这里要注意如果是使用的Schema::table()会报这样的错误,因为这是修改数据表所使用的方法,你都没有创建数据表还修改它,肯定有问题,这是需要注意的地方。
相关文章推荐
- SQLSTATE[42S02]: Base table or view not found: 1146 Table 'aplum.t_blogger_generalize' doesn't exist
- SQLSTATE[42S02]: Base table or view not found: 1146 Table 'blog.user' doesn't exist (SQL: select * f
- PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'database.semaphore' doesn't
- thinkphp中SQLSTATE[42S02]: Base table or view not found: 1146 Table错误解决方法
- thinkphp3.2.2升级3.2.3后 Base table or view not found: 1146解决办法
- Laravel Base table or view already exists: 1050 Table 'users' already exists
- 解决 Class not found和Base table or view not found: 1051 问题
- magento -- magento错误:SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'core_resource' already exists
- BUG排查:PHP Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[HY000] [1040] Too ma
- org.apache.spark.sql.AnalysisException: Table or view not found: `traintext`.`train`; line 1 pos 14;
- (八)BaseTableView的简单使用
- org.quartz.impl.jdbcjobstore.LockException: Failure obtaining db row lock: ORA-00942: table or view
- Laravel [PDOException] SQLSTATE[HY000] [2002] Connection refused
- Uncaught exception 'PDOException' with message 'SQLSTATE[HY000] [2002] No such file or directory解决方法
- Laravel在Mac下使用php artisan migrate命令出现No such file or directory
- PHP命名空间中使用Exception报错not found
- [PDOException] SQLSTATE[HY000] [2002] No such file or directory
- UICollection view or Tableview 使用
- PHP命名空间中使用Exception报错not found
- laravel migrate 时出现错误 [PDOException] SQLSTATE[HY000]: General error: 1215 Cannot add foreign key