Home > Backend Development > PHP Tutorial > mysql - php query error Error while sending QUERY packet. PID=xxx

mysql - php query error Error while sending QUERY packet. PID=xxx

WBOY
Release: 2016-08-29 08:50:48
Original
3087 people have browsed it

Background: Use the Yii2 command line mode to start a script to monitor the rabbitmq queue. When the queue has order information, perform query and update operations (equivalent to writing a query in a PHP file, update, and start using the command line)

Problem: There is no problem with monitoring at the beginning, but an error will be thrown every once in a while

<code>> Error while sending QUERY packet. PID=25370. The SQL being executed was: 一句sql语句(此sql直接执行没有错误).</code>
Copy after login
Copy after login

Reply content:

Background: Use the Yii2 command line mode to start a script to monitor the rabbitmq queue. When the queue has order information, perform query and update operations (equivalent to writing a query in a PHP file, update, and start using the command line)

Problem: There is no problem with monitoring at the beginning, but an error will be thrown every once in a while

<code>> Error while sending QUERY packet. PID=25370. The SQL being executed was: 一句sql语句(此sql直接执行没有错误).</code>
Copy after login
Copy after login

This sentencesql of yours is original sql written by yourself? Or is it the sql processing method that comes with the framework? If you wrote it yourselfsqlI suggest you switch to the sqlprocessing method in the framework and try it

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template