中国·88858cc永利(集团)有限公司-Official website

[10501] PDOException in Connection.php line 453

SQLSTATE[HY000]: General error: 1205 Lock wait timeout exceeded; try restarting transaction

  1. $query->readMaster();
  2. }
  3. $this->numRows = $this->PDOStatement->rowCount();
  4. return $this->numRows;
  5. } catch (\PDOException $e) {
  6. if ($this->isBreak($e)) {
  7. return $this->close()->execute($sql, $bind, $query);
  8. }
  9. throw new PDOException($e, $this->config, $this->getLastsql());
  10. } catch (\Throwable $e) {
  11. if ($this->isBreak($e)) {
  12. return $this->close()->execute($sql, $bind, $query);
  13. }
  14. throw $e;
  15. } catch (\Exception $e) {
  16. if ($this->isBreak($e)) {
  17. return $this->close()->execute($sql, $bind, $query);
  18. }

Call Stack

  1. in Connection.php line 453
  2. at Connection->execute('UPDATE `fa_cms_archi...', ['where_AND_id' => [897, 1]], object(Query)) in Query.php line 269
  3. at Query->execute('UPDATE `fa_cms_archi...', ['where_AND_id' => [897, 1]], object(Query)) in Query.php line 2437
  4. at Query->update(['views' => ['inc', 1]]) in Query.php line 642
  5. at Query->setField('views', ['inc', 1]) in Query.php line 671
  6. at Query->setInc('views', 1, 0) in Model.php line 1303
  7. at Model->setInc('views', 1) in Archives.php line 70
  8. at Archives->index()
  9. at call_user_func_array([object(Archives), 'index'], []) in Route.php line 76
  10. at Route->execute('cms', 'archives', 'index')
  11. at ReflectionMethod->invokeArgs(object(Route), ['cms', 'archives', 'index']) in App.php line 343
  12. at App::invokeMethod(['\think\addons\Route', 'execute'], ['id' => '897', 'addon' => 'cms', 'controller' => 'archives', ...]) in App.php line 470
  13. at App::exec(['type' => 'method', 'method' => ['\think\addons\Route', 'execute'], 'var' => ['addon' => 'cms', 'controller' => 'archives', 'action' => 'index']], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  14. at App::run() in start.php line 19
  15. at require('/www_init/zgkj.com/t...') in index.php line 23

Exception Datas

PDO Error Info
SQLSTATE HY000
Driver Error Code 1205
Driver Error Message Lock wait timeout exceeded; try restarting transaction
Database Status
Error Code 10501
Error Message SQLSTATE[HY000]: General error: 1205 Lock wait timeout exceeded; try restarting transaction
Error SQL UPDATE `fa_cms_archives` SET `views`=`views`+1 WHERE `id` = 897
Database Config
type mysql
hostname 127.0.0.1
database zgkj_com
hostport
dsn
params []
charset utf8mb4
prefix fa_
debug false
deploy 0
rw_separate false
master_num 1
slave_no
read_master false
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
empty
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

USER
www
HOME
/home/www
HTTP_ACCEPT_ENCODING
gzip
HTTP_ACCEPT
*/*
HTTP_HOST
www.zg-photonics.com
HTTP_USER_AGENT
Mozilla/5.0 (compatible; SemrushBot/7~bl; +http://www.semrush.com/bot.html)
PATH_INFO
/view/897.html
REDIRECT_STATUS
200
SERVER_NAME
zg-photonics.com
SERVER_PORT
443
SERVER_ADDR
60.247.157.73
REMOTE_PORT
57506
REMOTE_ADDR
104.140.79.42
SERVER_SOFTWARE
nginx/1.24.0
GATEWAY_INTERFACE
CGI/1.1
HTTPS
on
REQUEST_SCHEME
https
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
/www_init/zgkj.com/public
DOCUMENT_URI
/index.php/view/897.html
REQUEST_URI
/index.php/view/897.html
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
SCRIPT_FILENAME
/www_init/zgkj.com/public/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php/view/897.html
REQUEST_TIME_FLOAT
1757091133.2729
REQUEST_TIME
1757091133
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/www_init/zgkj.com/public/../application/
THINK_VERSION
5.0.24
THINK_START_TIME
1757091133.2737
THINK_START_MEM
408048
EXT
.php
DS
/
THINK_PATH
/www_init/zgkj.com/thinkphp/
LIB_PATH
/www_init/zgkj.com/thinkphp/library/
CORE_PATH
/www_init/zgkj.com/thinkphp/library/think/
TRAIT_PATH
/www_init/zgkj.com/thinkphp/library/traits/
ROOT_PATH
/www_init/zgkj.com/
EXTEND_PATH
/www_init/zgkj.com/extend/
VENDOR_PATH
/www_init/zgkj.com/vendor/
RUNTIME_PATH
/www_init/zgkj.com/runtime/
LOG_PATH
/www_init/zgkj.com/runtime/log/
CACHE_PATH
/www_init/zgkj.com/runtime/cache/
TEMP_PATH
/www_init/zgkj.com/runtime/temp/
CONF_PATH
/www_init/zgkj.com/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
FILTER_VALIDATE_BOOL
258
ADDON_PATH
/www_init/zgkj.com/addons/
Baidu
sogou