biaobiaohehe

第 1601 位会员

会员
个人信息
  • 加入于 2019-09-16 15:45:21
  • 最后登录时间 17小时前
个人成就
  • 发表文章次数 3
  • 发布回复次数 3
  • 个人主页浏览次数 2
数据库不能初始化1个月前

很奇怪,我就是第一次安装的,我这边没有修改任何代码的 加了debug确实是null 但是在以第一次出现填写数据库页面的时候我这边,在nginx 里面看到这个报错 error] 33978#0: *161 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught PDOException: PDO::construct(): php_network_getaddresses: getaddrinfo failed: nodename nor servname provided, or not known in /Users/hebiao/Workspace/mine/myshop/vendor/yiisoft/yii2/db/Connection.php:695 Stack trace: #0 /Users/hebiao/Workspace/mine/myshop/vendor/yiisoft/yii2/db/Connection.php(695): PDO->construct('mysql:host={mys...', '{mysql_user}', '{mysql_password...', NULL) #1 /Users/hebiao/Workspace/mine/myshop/vendor/yiisoft/yii2/db/Connection.php(621): yii\db\Connection->createPdoInstance() #2 /Users/hebiao/Workspace/mine/myshop/vendor/yiisoft/yii2/db/Connection.php(1012): yii\db\Connection->open() #3 /Users/hebiao/Workspace/mine/myshop/vendor/yiisoft/yii2/db/Connection.php(999): yii\db\Connection->getMasterPdo() #4 /Users/hebiao/Workspace/mine/myshop/vendor/yiisoft/yii2/db/Command.php(253): yii\db\Connection->getSlavePdo() #5 /Users/hebiao/Workspace/mine/myshop/vendor/yiisoft/yii2/db/Command.php(1153): yii\db\Command->prepare(true) #6 /Users/hebiao/Works" while reading response header from upstream, client: 127.0.0.1, server: appfront.shoptest.com, request: "GET /debug/default/toolbar?tag=5d7f7dbc72a0d HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "appfront.shoptest.com", referrer: "http://appfront.shoptest.com/install.php"

然后我在填写数据库信息,点击提交按钮后,就会跳HTTP ERROR 500 然后页面nginx里面继续报上面的错误

[error] 33978#0: 161 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'fecmall.extensions' doesn't exist in /Users/hebiao/Workspace/mine/myshop/vendor/yiisoft/yii2/db/Command.php:1290 Stack trace: #0 /Users/hebiao/Workspace/mine/myshop/vendor/yiisoft/yii2/db/Command.php(1290): PDOStatement->execute() #1 /Users/hebiao/Workspace/mine/myshop/vendor/yiisoft/yii2/db/Command.php(1158): yii\db\Command->internalExecute('SELECT FROM ...') #2 /Users/hebiao/Workspace/mine/myshop/vendor/yiisoft/yii2/db/Command.php(399): yii\db\Command->queryInternal('fetchAll', NULL) #3 /Users/hebiao/Workspace/mine/myshop/common/config/bootstrap.php(37): yii\db\Command->queryAll() #4 /Users/hebiao/Workspace/mine/myshop/appfront/web/index.php(24): require('/Users/hebiao/W...') #5 {main}

Next yii\db\Exception: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'fecmall.extensions' doesn't exist The SQL being executed was: SELECT * FROM extensions where status=1 AND installed_status" while reading response header from upstream, client: 127.0.0.1, server: appfront.shoptest.com, request: "GET /install.php/database/config/migrate HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "appfront.shoptest.com", referrer: "http://appfront.shoptest.com/install.php"

域名的配置这些都是按照文档来的,难道因为我是mac吗。。。

数据库不能初始化1个月前

就是直接安装的2.3.2 这个版本的,但是在输入数据库配置的界面,提交以后直接报错 500 ,然后在nginx里面看错误日志,发现上面的问题。是缺少什么扩展吗。

Your Site Analytics