Yesterday the following messages showed up in my PHP logs:
[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
The query itself is actually quite short, so that Error while sending QUERY packet did not help me.
Some facts about the server/scripts:
- Yesterday I changed from
PHP 5.4.45
toPHP 5.5.34
. - The MySQL server on that machine is:
5.1.73-1+deb6u1
- The MySQL client on that machine is:
mysqlnd 5.0.11-dev - 20120503
- I'm ignoring all deprecated warnings so they don't show up in the PHP logs.
- I'm still sending MySQL requests using
mysql_query()
(I'm about to change this soon).
Now is there a way to find out what happened in that time? It did not happen again, yet.
Do you have any idea what might have caused this error an how to verfiy this?
ADDITION for loka_bolka
:
mysql_query("
UPDATE
`tablename`
SET
".$query."
WHERE
`user` = '".mysql_real_escape_string($user)."'
LIMIT 1
"); // This is line 322