Title: errors updating db after running update
Last modified: August 20, 2016

---

# errors updating db after running update

 *  [dotman](https://wordpress.org/support/users/dotman/)
 * (@dotman)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/errors-updating-db-after-running-update/)
 * After running the update to 3.4.1 which ran fine, I was then prompted to update
   the DB. I’m getting the following errors after running the page. I am able to
   view and login to the site, but If try to go to any of the admin pages, I’m redirected
   back to the page asking me to update the db. Below are the errors i get after
   it runs. Would appreciate any help getting this fixed. Thanks.:
 * WordPress database error: [MySQL server has gone away]
    DELETE FROM wp_usermeta
   WHERE meta_key = ‘themes_last_view’
 * WordPress database error: [MySQL server has gone away]
    SELECT autoload FROM 
   wp_options WHERE option_name = ‘uninstall_plugins’
 * WordPress database error: [MySQL server has gone away]
    SELECT option_value FROM
   wp_options WHERE option_name = ‘active_plugins’
 * WordPress database error: [MySQL server has gone away]
    INSERT INTO `wp_options`(`
   option_name`, `option_value`, `autoload`) VALUES (‘db_version’, ‘21115’, ‘yes’)
   ON DUPLICATE KEY UPDATE `option_name` = VALUES(`option_name`), `option_value`
   = VALUES(`option_value`), `autoload` = VALUES(`autoload`)
 * WordPress database error: [MySQL server has gone away]
    INSERT INTO `wp_options`(`
   option_name`, `option_value`, `autoload`) VALUES (‘db_upgraded’, ‘1’, ‘yes’) 
   ON DUPLICATE KEY UPDATE `option_name` = VALUES(`option_name`), `option_value`
   = VALUES(`option_value`), `autoload` = VALUES(`autoload`)
 * WordPress database error: [MySQL server has gone away]
    SELECT option_value FROM
   wp_options WHERE option_name = ‘home’
 * WordPress database error: [MySQL server has gone away]
    SELECT option_value FROM
   wp_options WHERE option_name = ‘siteurl’

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [RichardWPG](https://wordpress.org/support/users/richardwpg/)
 * (@richardwpg)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/errors-updating-db-after-running-update/#post-2950611)
 * double check your wp-config.php file settings for the database name, database
   username and database password. This is where most errors occur.
 *  [s_ha_dum](https://wordpress.org/support/users/apljdi/)
 * (@apljdi)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/errors-updating-db-after-running-update/#post-2950616)
 * Do you have access to MySQL’s log files? The real problem is probably what happened
   right before you started getting those messages.
 *  [David Choi](https://wordpress.org/support/users/wpthemes777/)
 * (@wpthemes777)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/errors-updating-db-after-running-update/#post-2950618)
 * Maybe your MySQL is down? Might wanna check with your hosting company to see 
   if it is still online. It’s very rare, but it does happen (it happened to me 
   once).
 *  [s_ha_dum](https://wordpress.org/support/users/apljdi/)
 * (@apljdi)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/errors-updating-db-after-running-update/#post-2950630)
 * That is why I asked about the logs. The MySQL server is almost certainly down.
   What took it down would have happened just before those messages started.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘errors updating db after running update’ is closed to new replies.

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 4 replies
 * 4 participants
 * Last reply from: [s_ha_dum](https://wordpress.org/support/users/apljdi/)
 * Last activity: [13 years, 9 months ago](https://wordpress.org/support/topic/errors-updating-db-after-running-update/#post-2950630)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
