windows系统下安装,初始化数据的时候报错Fatal error: Uncaught PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'freeshop.extensions' doesn't exist

安装报错 · fengruilk · 于 4年前 发布 · 2594 次阅读

Fatal error: Uncaught PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'freeshop.extensions' doesn't exist in C:\Users\Administrator\Desktop\wx\freeshop\fecmall\vendor\yiisoft\yii2\db\Command.php:1290 Stack trace: #0 C:\Users\Administrator\Desktop\wx\freeshop\fecmall\vendor\yiisoft\yii2\db\Command.php(1290): PDOStatement->execute() #1 C:\Users\Administrator\Desktop\wx\freeshop\fecmall\vendor\yiisoft\yii2\db\Command.php(1158): yii\db\Command->internalExecute('SELECT * FROM ...') #2 C:\Users\Administrator\Desktop\wx\freeshop\fecmall\vendor\yiisoft\yii2\db\Command.php(399): yii\db\Command->queryInternal('fetchAll', NULL) #3 C:\Users\Administrator\Desktop\wx\freeshop\fecmall\common\config\bootstrap.php(34): yii\db\Command->queryAll() #4 C:\Users\Administrator\Desktop\wx\freeshop\fecmall\appfront\web\index.php(24): require('C:\Users\Admini...') #5 {main} Next yii\db\Exception: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'freeshop.extensions' doesn't exist The SQL being executed was: SEL in C:\Users\Administrator\Desktop\wx\freeshop\fecmall\vendor\yiisoft\yii2\db\Schema.php on line 674这些是报错信息,试了好几次,还是这样,apache php7.2.9

共收到 3 条回复
Fecmall#14年前 0 个赞

导致这个问题的原因,是你的nginx或者apache配置问题导致的

1.如果是nginx,参看:http://www.fecmall.com/topic/2101

2.如果是apache,参看:http://www.fecmall.com/doc/fecshop-guide/develop/cn-2.0/guide-fecshop-2-3-about-wamp-install.html

fengruilk#24年前 0 个赞

配置都设置了几遍,还是不行,后来找到个办法,在服务器上安装成功后,把数据库复制下来,导入到本地,这样就成了,可以在本地测试了

Fecmall#34年前 0 个赞

关于这个问题,可以看帖子:http://www.fecmall.com/topic/2126

添加回复 (需要登录)
需要 登录 后方可回复, 如果你还没有账号请点击这里 注册
Your Site Analytics