• Steven Cooper

    (@kingcooper)


    Hi champions
    I have recently migrated my site. Successfully except for sassy social share plugin was engaging GB of memory instead of just severy KB for its use. I disable that plugin, and all other plugins function fine, the site was great.
    But now my site cant connect to the database. I don’t know why. Its this error:

    [24-Feb-2021 11:16:35 UTC] PHP Warning:  mysqli_query(): MySQL server has gone away in /home/cooper/public_html/wp-includes/wp-db.php on line 2056
    [24-Feb-2021 11:16:35 UTC] PHP Warning:  mysqli_query(): Error reading result set's header in /home/cooper/public_html/wp-includes/wp-db.php on line 2056
    [24-Feb-2021 11:16:35 UTC] PHP Warning:  mysqli_query(): MySQL server has gone away in /home/cooper/public_html/wp-includes/wp-db.php on line 2056
    [24-Feb-2021 11:16:35 UTC] PHP Warning:  mysqli_query(): Error reading result set's header in /home/cooper/public_html/wp-includes/wp-db.php on line 2056
    [24-Feb-2021 11:41:48 UTC] PHP Warning:  Error while sending QUERY packet. PID=19232 in /home/cooper/public_html/wp-includes/wp-db.php on line 2056
    [24-Feb-2021 11:41:48 UTC] PHP Warning:  Error while sending QUERY packet. PID=19243 in /home/cooper/public_html/wp-includes/wp-db.php on line 2056
    [24-Feb-2021 11:41:48 UTC] PHP Warning:  Error while sending QUERY packet. PID=19216 in /home/cooper/public_html/wp-includes/wp-db.php on line

    I did update the user password (after everything was working), because i thought it might be wrong, bt it was fine before.
    Is it a wordpress problem? Or a cpanel problem? I was doing some cpanel work, i thought it was all fine. I don’t see whats gone wrong?
    Is it a corrupt file?
    Any ideas?
    Thanks.
    Steve

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • RossMitchell

    (@rossmitchell)

    I googled on:
    “PHP Warning: mysqli_query(): MySQL server has gone away”
    maybe this will help.

    Otherwise I suggest that you seek support from your website hosting.

    Thread Starter Steven Cooper

    (@kingcooper)

    Hi champs
    Ive cleaned up my database a bit.
    But im wondering if i accidentially had uth8**4 charset in the tables instead of uth8. Ive installed the new website with charset uth8, and im wondering if this would cause constant db connection timeouts, too many mysql requests.
    Or is it too many mysql requests because ive been very active installing site at my new IP server?

    Heres a bit more code:

    [25-Feb-2021 05:27:23 UTC] PHP Warning:  Error while sending QUERY packet. PID=6850 in /home/cooper/public_html/wp-includes/wp-db.php on line 2056
    [25-Feb-2021 05:27:23 UTC] PHP Warning:  Error while sending QUERY packet. PID=6849 in /home/cooper/public_html/wp-includes/wp-db.php on line 2056
    [25-Feb-2021 05:27:23 UTC] PHP Warning:  Error while sending QUERY packet. PID=6840 in /home/cooper/public_html/wp-includes/wp-db.php on line 2056
    [25-Feb-2021 05:27:23 UTC] PHP Warning:  Error while sending QUERY packet. PID=6824 in /home/cooper/public_html/wp-includes/wp-db.php on line 2056
    [25-Feb-2021 05:29:32 UTC] PHP Warning:  Error while sending QUERY packet. PID=7446 in /home/cooper/public_html/wp-includes/wp-db.php on line 2056
    [25-Feb-2021 05:29:32 UTC] PHP Warning:  Error while sending QUERY packet. PID=7447 in /home/cooper/public_html/wp-includes/wp-db.php on line 2056
    [25-Feb-2021 05:42:47 UTC] PHP Warning:  mysqli_query(): MySQL server has gone away in /home/cooper/public_html/wp-includes/wp-db.php on line 2056
    [25-Feb-2021 05:42:47 UTC] PHP Warning:  mysqli_query(): Error reading result set's header in /home/cooper/public_html/wp-includes/wp-db.php on line 2056
    [25-Feb-2021 05:43:22 UTC] PHP Warning:  Error while sending QUERY packet. PID=9650 in /home/cooper/public_html/wp-includes/wp-db.php on line 2056
    [25-Feb-2021 05:43:22 UTC] PHP Warning:  Error while sending QUERY packet. PID=9651 in /home/cooper/public_html/wp-includes/wp-db.php on line 2056
    [25-Feb-2021 05:49:25 UTC] PHP Warning:  mysqli_query(): MySQL server has gone away in /home/cooper/public_html/wp-includes/wp-db.php on line 2056
    [25-Feb-2021 05:49:25 UTC] PHP Warning:  mysqli_query(): Error reading result set's header in /home/cooper/public_html/wp-includes/wp-db.php on line 2056
    [25-Feb-2021 05:49:25 UTC] PHP Warning:  Error while sending QUERY packet. PID=1669 in /home/cooper/public_html/wp-includes/wp-db.php on line 2056

    Any ideas guy n girls?
    Cheers
    Steven

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Cannot connect db’ is closed to new replies.