WordPress.org

Forums

WP DB Driver
[resolved] PHP Warning: Error while sending QUERY packet (4 posts)

  1. J.D. Grimes
    Member
    Posted 1 year ago #

    I received these errors upon updating to 3.6-RC1-24757:

    [22-Jul-2013 15:10:13 UTC] PHP Warning:  Error while sending QUERY packet. PID=14707 in ...wp-content/plugins/wp-db-driver/drivers/pdo_mysql.php on line 109
    [22-Jul-2013 15:10:13 UTC] Error executing query: HY000 - SQLSTATE[HY000]: General error: 2006 MySQL server has gone away in query SELECT autoload FROM wptest209_options WHERE option_name = '_site_transient_update_core'
    [22-Jul-2013 15:10:13 UTC] WordPress database error MySQL server has gone away for query SELECT autoload FROM wptest209_options WHERE option_name = '_site_transient_update_core' made by do_core_upgrade, wp_update_core, Core_Upgrader->upgrade, update_core, delete_site_transient, delete_site_option, delete_option, wpdb_drivers->query, wpdb_drivers->print_error

    I have not tried to track it down and see why it was caused yet.

    http://wordpress.org/extend/plugins/wp-db-driver/

  2. Marko Heijnen
    Member
    Plugin Author

    Posted 1 year ago #

    Thats an interesting one. Not sure which query that is. I guess the site isn't a big one?

  3. J.D. Grimes
    Member
    Posted 1 year ago #

    No, its a fairly small site which I just use for testing and development. But it looks like the error was caused by the MySQL server timing out before WordPress was entirely loaded. So I guess this really has nothing to do with the plugin exactly, but just the fact that WordPress doesn't always maintain the database connection. I actually have had this problem before on some of my other sites, and so I've increased the timeout interval for them. I've never had the issue on this one though, which is why it threw me off.

    On a side note, it would be great if it was easier to set the database connection timeout interval in WordPress, like just setting a constant in wp-config.php. E.g.:

    define( 'WP_DB_TIMEOUT', 300 );

    Maybe I should open a ticket for that.

  4. Marko Heijnen
    Member
    Plugin Author

    Posted 1 year ago #

    I don't think that should be in core. Not sure how many servers we can't set the timeout due MySQL rights.

    Having this issues with MySQL would seem like a misconfiguration in MySQL. Since I can't remember the last time I had this. So fixing it on the MySQL end seems the best place.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP DB Driver
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic