澳门新浦新京(中国)有限公司

[10501] PDOException in Connection.php line 764

SQLSTATE[42000]: Syntax error or access violation: 1142 UPDATE command denied to user 'aijiying'@'127.0.0.1' for table 'm_case'

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

Call Stack

  1. in Connection.php line 764
  2. at Connection->execute('UPDATE `m_case` SET...', ['ThinkBind_1_' => ['98', 1]], object(Query)) in Connection.php line 1157
  3. at Connection->update(object(Query)) in Query.php line 2902
  4. at Query->update(['hits' => ['INC', 1]]) in Query.php line 726
  5. at Query->setField('hits', ['INC', 1]) in Query.php line 759
  6. at Query->setInc('hits') in Cases.php line 47
  7. at Cases->case_show()
  8. at ReflectionMethod->invokeArgs(object(Cases), []) in Container.php line 395
  9. at Container->invokeReflectMethod(object(Cases), object(ReflectionMethod), ['article_id' => '98']) in Module.php line 132
  10. at Module->think\route\dispatch\{closure}(object(Request), object(Closure), null)
  11. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
  12. at Middleware->think\{closure}(object(Request))
  13. at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
  14. at Middleware->dispatch(object(Request), 'controller') in Module.php line 137
  15. at Module->exec() in Dispatch.php line 168
  16. at Dispatch->run() in App.php line 432
  17. at App->think\{closure}(object(Request), object(Closure), null)
  18. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
  19. at Middleware->think\{closure}(object(Request))
  20. at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
  21. at Middleware->dispatch(object(Request)) in App.php line 435
  22. at App->run() in index.php line 21

Exception Datas

PDO Error Info
SQLSTATE 42000
Driver Error Code 1142
Driver Error Message UPDATE command denied to user 'aijiying'@'127.0.0.1' for table 'm_case'
Database Status
Error Code 10501
Error Message SQLSTATE[42000]: Syntax error or access violation: 1142 UPDATE command denied to user 'aijiying'@'127.0.0.1' for table 'm_case'
Error SQL UPDATE `m_case` SET `hits` = `hits` + 1 WHERE `article_id` IN (98)
Database Config
type mysql
hostname localhost
database aijiying
hostport
dsn
params []
charset utf8
prefix m_
debug true
deploy 0
rw_separate false
master_num 1
slave_no
read_master false
fields_strict true
resultset_type array
auto_timestamp false
datetime_format Y-m-d H:i:s
sql_explain false
builder
query \think\db\Query
break_reconnect false
break_match_str []

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookies
PHPSESSID diaddm1s9om43mvq36apsli486
Sessionempty
Server/Request Data
_FCGI_X_PIPE_ \\.\pipe\IISFCGI-2b0541e0-aa8b-4cb1-9833-5bee547779a4
PHP_FCGI_MAX_REQUESTS 1000
PHPRC C:\php_56
ALLUSERSPROFILE C:\ProgramData
APPDATA C:\Windows\system32\config\systemprofile\AppData\Roaming
APP_POOL_CONFIG C:\inetpub\temp\apppools\aijiying\aijiying.config
APP_POOL_ID aijiying
CommonProgramFiles C:\Program Files (x86)\Common Files
CommonProgramFiles(x86) C:\Program Files (x86)\Common Files
CommonProgramW6432 C:\Program Files\Common Files
COMPUTERNAME EBS-21567
ComSpec C:\Windows\system32\cmd.exe
DriverData C:\Windows\System32\Drivers\DriverData
LOCALAPPDATA C:\Windows\system32\config\systemprofile\AppData\Local
NUMBER_OF_PROCESSORS 8
OS Windows_NT
Path C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\php_52;D:\mysql\bin;c:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\;C:\Program Files (x86)\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\130\DTS\Binn\;C:\Program Files\Microsoft SQL Server\130\DTS\Binn\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\130\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\150\DTS\Binn\;C:\Program Files\dotnet\;C:\Program Files (x86)\dotnet\;C:\Windows\system32\config\systemprofile\AppData\Local\Microsoft\WindowsApps
PATHEXT .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PROCESSOR_ARCHITECTURE x86
PROCESSOR_ARCHITEW6432 AMD64
PROCESSOR_IDENTIFIER Intel64 Family 6 Model 85 Stepping 4, GenuineIntel
PROCESSOR_LEVEL 6
PROCESSOR_REVISION 5504
ProgramData C:\ProgramData
ProgramFiles C:\Program Files (x86)
ProgramFiles(x86) C:\Program Files (x86)
ProgramW6432 C:\Program Files
PSModulePath C:\Program Files\WindowsPowerShell\Modules;C:\Windows\system32\WindowsPowerShell\v1.0\Modules;C:\Program Files (x86)\Microsoft SQL Server\130\Tools\PowerShell\Modules\
PUBLIC C:\Users\Public
SystemDrive C:
SystemRoot C:\Windows
TEMP C:\Windows\TEMP
TMP C:\Windows\TEMP
USERDOMAIN WORKGROUP
USERNAME EBS-21567$
USERPROFILE C:\Windows\system32\config\systemprofile
windir C:\Windows
ORIG_PATH_INFO /index.php/index/cases/case_show/article_id/98.html
URL /index.php
SERVER_SOFTWARE Microsoft-IIS/10.0
SERVER_PROTOCOL HTTP/1.1
SERVER_PORT_SECURE 0
SERVER_PORT 80
SERVER_NAME www.aigenetec.cn
SCRIPT_NAME /index.php
SCRIPT_FILENAME D:\wwwroot\aijiying\wwwroot\index.php
REQUEST_URI /index/cases/case_show/article_id/98.html
REQUEST_METHOD GET
REMOTE_USER
REMOTE_PORT 51506
REMOTE_HOST 127.0.0.1
REMOTE_ADDR 127.0.0.1
QUERY_STRING
PATH_TRANSLATED D:\wwwroot\aijiying\wwwroot\index.php\index\cases\case_show\article_id\98.html
PATH_INFO /index/cases/case_show/article_id/98.html
LOGON_USER
LOCAL_ADDR 127.0.0.1
INSTANCE_META_PATH /LM/W3SVC/10372
INSTANCE_NAME AIJIYING
INSTANCE_ID 10372
HTTPS_SERVER_SUBJECT
HTTPS_SERVER_ISSUER
HTTPS_SECRETKEYSIZE
HTTPS_KEYSIZE
HTTPS off
GATEWAY_INTERFACE CGI/1.1
DOCUMENT_ROOT D:\wwwroot\aijiying\wwwroot
CONTENT_TYPE
CONTENT_LENGTH 0
CERT_SUBJECT
CERT_SERIALNUMBER
CERT_ISSUER
CERT_FLAGS
CERT_COOKIE
AUTH_USER
AUTH_PASSWORD
AUTH_TYPE
APPL_PHYSICAL_PATH D:\wwwroot\aijiying\wwwroot\
APPL_MD_PATH /LM/W3SVC/10372/ROOT
IIS_UrlRewriteModule 7,1,1993,2336
WEBSOCKET_VERSION 13
UNENCODED_URL /index/cases/case_show/article_id/98.html
IIS_WasUrlRewritten 1
HTTP_X_ORIGINAL_URL /index/cases/case_show/article_id/98.html
HTTP_REALIP_WTS_X 107.158.240.82
HTTP_X_REAL_IP 107.158.240.82
HTTP_X_FORWARDED_FOR 107.158.240.82
HTTP_USER_AGENT Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm) Chrome/116.0.1938.76 Safari/537.36
HTTP_HOST www.aigenetec.cn
HTTP_COOKIE PHPSESSID=diaddm1s9om43mvq36apsli486
HTTP_ACCEPT_ENCODING gzip
HTTP_ACCEPT */*
HTTP_CONTENT_LENGTH 0
HTTP_CONNECTION close
FCGI_ROLE RESPONDER
PHP_SELF /index.php/index/cases/case_show/article_id/98.html
REQUEST_TIME_FLOAT 1731968298.5054
REQUEST_TIME 1731968298
Environment Variablesempty
ThinkPHP Constantsempty
Baidu
sogou