Warning: Error while sending QUERY packet.

isajk

Registered
Sep 28, 2016
1
0
1
Tejas
cPanel Access Level
Root Administrator
I did a search on my website and received my results (that 'no results were found') and at the top of the page, this error message:

Warning: Error while sending QUERY packet. PID=22319 in /home/-----/public_html/domain.tld/2016/wp-includes/wp-db.php on line 1868

I did another search and received results and no error message, so I did a search for something I knew was not on the website. Again no error message.

Searching Wordpress forums for this error, I found this reply:
If on a VPS, you’d update those values in your mysql/maria config files then restart the database service.

I don't know how to do this. I am new to VPS. My website was just moved to VPS yesterday afternoon.

Do I need to update my values?

Thanks.
 
Last edited by a moderator:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,222
463
Hello,

You should first access your server via the command line as the "root" user using the instructions at:

SSH Access - Documentation - cPanel Documentation

Then, you can follow the steps below to modify your MySQL configuration:
  1. Open the /etc/my.cnf file with your preferred text editor.
  2. Enter a new configuration value or adjust an existing configuration value in the [mysqld] section.
  3. Save the file.
  4. Restart MySQL® with the /scripts/restartsrv_mysql script.
The specific value to adjust depends on the specific advice you received or the specific error message. This thread is also a good place to start:

mysqlmymonlite.sh server stats gathering tool for cPanel Server

Thanks!