昨天我的PHP日志中显示以下消息:
[10-Apr-2016 11:51:32 America/Los_Angeles] PHP Warning: Error while sending QUERY packet. PID=31184 in /tools/stat.php on line 322
[10-Apr-2016 11:51:33 America/Los_Angeles] PHP Warning: Error while sending QUERY packet. PID=31200 in /tools/stat.php on line 322
[10-Apr-2016 11:51:35 America/Los_Angeles] PHP Warning: Error while sending QUERY packet. PID=31209 in /tools/stat.php on line 322
[10-Apr-2016 11:51:40 America/Los_Angeles] PHP Warning: Error while sending QUERY packet. PID=31226 in /tools/stat.php on line 322
[10-Apr-2016 11:53:17 America/Los_Angeles] PHP Warning: Error while sending QUERY packet. PID=32184 in /tools/stat.php on line 322
[10-Apr-2016 11:53:24 America/Los_Angeles] PHP Warning: Error while sending QUERY packet. PID=32207 in /tools/stat.php on line 322
[10-Apr-2016 11:53:27 America/Los_Angeles] PHP Warning: Error while sending QUERY packet. PID=32217 in /tools/stat.php on line 322
[10-Apr-2016 11:53:28 America/Los_Angeles] PHP Warning: Error while sending QUERY packet. PID=32225 in /tools/stat.php on line 322
[10-Apr-2016 11:53:30 America/Los_Angeles] PHP Warning: Error while sending QUERY packet. PID=32227 in /tools/stat.php on line 322
[10-Apr-2016 11:53:32 America/Los_Angeles] PHP Warning: Error while sending QUERY packet. PID=32242 in /tools/stat.php on line 322
查询本身实际上很短,因此Error while sending QUERY packet对我没有帮助。
有关服务器/脚本的一些事实:
PHP 5.4.45
更改为PHP 5.5.34
。5.1.73-1+deb6u1
mysqlnd 5.0.11-dev - 20120503
mysql_query()
发送MySQL请求(我即将改变此消息)。现在有办法找出那段时间发生的事吗?它还没有再次发生。
您是否知道可能导致此错误的原因是如何验证这一点?
loka_bolka
的补充:
mysql_query("
UPDATE
`tablename`
SET
".$query."
WHERE
`user` = '".mysql_real_escape_string($user)."'
LIMIT 1
"); // This is line 322