The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Warning: Error while sending QUERY packet.

Discussion in 'General Discussion' started by isajk, Sep 28, 2016.

Tags:
  1. isajk

    isajk Registered

    Joined:
    Sep 28, 2016
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    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.
     
    #1 isajk, Sep 28, 2016
    Last edited by a moderator: Sep 28, 2016
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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!
     
Loading...

Share This Page