[10501] PDOException in Connection.php line 399

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'sxgdsh.niuer_options' doesn't exist

  1. $this->PDOStatement->execute();
  2. // 调试结束
  3. $this->debug(false);
  4. // 返回结果集
  5. return $this->getResult($pdo, $procedure);
  6. } catch (\PDOException $e) {
  7. if ($this->config['break_reconnect'] && $this->isBreak($e)) {
  8. return $this->close()->query($sql, $bind, $master, $pdo);
  9. }
  10. throw new PDOException($e, $this->config, $this->getLastsql());
  11. }
  12. }
  13. /**
  14. * 执行语句
  15. * @access public
  16. * @param string $sql sql指令
  17. * @param array $bind 参数绑定
  18. * @return int

Call Stack

  1. in Connection.php line 399
  2. at Connection->query('SELECT option_value ...')
  3. at call_user_func_array([object(Mysql), 'query'], ['SELECT option_value ...']) in Db.php line 149
  4. at Db::__callStatic('query', ['SELECT option_value ...']) in CommonModel.php line 14
  5. at CommonModel->_initialize() in Template.php line 13
  6. at Template->_initialize() in Controller.php line 56
  7. at Controller->__construct(object(Request))
  8. at ReflectionClass->newInstanceArgs([object(Request)]) in App.php line 215
  9. at App::invokeClass('app\home\controller\...') in Loader.php line 420
  10. at Loader::controller('Template', 'controller', false, 'Error') in App.php line 386
  11. at App::module(['home', 'Template', 'template'], ['app_namespace' => 'app', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 295
  12. at App::exec(['type' => 'module', 'module' => ['home', 'Template', 'template'], 'convert' => false], ['app_namespace' => 'app', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 123
  13. at App::run() in start.php line 18
  14. at require('/home/wwwroot/sxgdsh...') in index.php line 18

Exception Datas

PDO Error Info
SQLSTATE 42S02
Driver Error Code 1146
Driver Error Message Table 'sxgdsh.niuer_options' doesn't exist
Database Status
Error Code 10501
Error Message SQLSTATE[42S02]: Base table or view not found: 1146 Table 'sxgdsh.niuer_options' doesn't exist
Error SQL SELECT option_value FROM `niuer_options` WHERE option_id = 7
Database Config
type mysql
hostname 127.0.0.1
database sxgdsh
username sxgdsh
password xuhaibo518
hostport 3306
dsn
params []
charset utf8
prefix niuer_
debug true
deploy 0
rw_separate false
master_num 1
slave_no
fields_strict true
result_type 2
resultset_type array
auto_timestamp false
datetime_format false
sql_explain false
builder
query \think\db\Query
break_reconnect false

Environment Variables

GET Data

p
2
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

USER
www
HOME
/home/www
PATH_TRANSLATED
redirect:/index.php/pingtai
PATH_INFO
/pingtai
SCRIPT_NAME
/index.php
REQUEST_URI
/pingtai?p=2
QUERY_STRING
p=2
REQUEST_METHOD
GET
SERVER_PROTOCOL
HTTP/1.1
GATEWAY_INTERFACE
CGI/1.1
REDIRECT_QUERY_STRING
p=2
REDIRECT_URL
/pingtai
REMOTE_PORT
20000
SCRIPT_FILENAME
/www/wwwroot/sxgdsh.com/index.php
SERVER_ADMIN
webmaster@example.com
CONTEXT_DOCUMENT_ROOT
/www/wwwroot/sxgdsh.com
CONTEXT_PREFIX
REQUEST_SCHEME
http
DOCUMENT_ROOT
/www/wwwroot/sxgdsh.com
REMOTE_ADDR
23.82.214.162
SERVER_PORT
80
SERVER_ADDR
211.149.252.39
SERVER_NAME
www.sxgdsh.com
SERVER_SOFTWARE
Apache
SERVER_SIGNATURE
<address>Apache Server at www.sxgdsh.com Port 80</address>
LD_LIBRARY_PATH
/www/server/apache/lib
PATH
/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/root/bin
HTTP_ACCEPT_ENCODING
deflate, gzip
HTTP_ACCEPT
*/*
HTTP_HOST
www.sxgdsh.com
HTTP_USER_AGENT
Mozilla/5.0+(compatible;+Baiduspider/2.0;++http://www.baidu.com/search/spider.html)
proxy-nokeepalive
1
REDIRECT_STATUS
200
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php/pingtai
REQUEST_TIME_FLOAT
1568645023.5867
REQUEST_TIME
1568645023
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/home/wwwroot/sxgdsh.com/app/
RUNTIME_PATH
/home/wwwroot/sxgdsh.com/data/runtime/
THINK_VERSION
5.0.7
THINK_START_TIME
1568645023.589
THINK_START_MEM
379216
EXT
.php
DS
/
THINK_PATH
/home/wwwroot/sxgdsh.com/thinkphp/
LIB_PATH
/home/wwwroot/sxgdsh.com/thinkphp/library/
CORE_PATH
/home/wwwroot/sxgdsh.com/thinkphp/library/think/
TRAIT_PATH
/home/wwwroot/sxgdsh.com/thinkphp/library/traits/
ROOT_PATH
/home/wwwroot/sxgdsh.com/
EXTEND_PATH
/home/wwwroot/sxgdsh.com/extend/
VENDOR_PATH
/home/wwwroot/sxgdsh.com/vendor/
LOG_PATH
/home/wwwroot/sxgdsh.com/data/runtime/log/
CACHE_PATH
/home/wwwroot/sxgdsh.com/data/runtime/cache/
TEMP_PATH
/home/wwwroot/sxgdsh.com/data/runtime/temp/
CONF_PATH
/home/wwwroot/sxgdsh.com/app/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
QINIU_FUNCTIONS_VERSION
7.1.3
ADDON_PATH
/home/wwwroot/sxgdsh.com/addons/