Error while sending QUERY packet

后端 未结 8 1991
情歌与酒
情歌与酒 2020-11-27 04:42

i was trying to insert some data into the database but i got this error \"Error while sending QUERY packet\"

$insertDeta = $conPat->pre         


        
8条回答
  •  攒了一身酷
    2020-11-27 05:16

    Had such a problem when executing forking in php for command line. In my case from time to time the php killed the child process. To fix this, just wait for the process to complete using the command pcntl_wait($status);

    here's a piece of code for a visual example:

        #!/bin/php -n
        
    

提交回复
热议问题