Title: Problem with database version after WordPress upgrade
Last modified: May 16, 2024

---

# Problem with database version after WordPress upgrade

 *  [TheGreyRabbit](https://wordpress.org/support/users/ayo-1/)
 * (@ayo-1)
 * [2 years ago](https://wordpress.org/support/topic/problem-with-database-version-after-wordpress-upgrade/)
 * I’m having issues with inaccessible admin after each WordPress upgrade. What 
   happens after inserting the admin credentials is the page reloads with the following
   url:
 * [https://www.website.com/wp-admin/upgrade.php?_wphttp_referrer=%2Fwp-admin%2F](https://www.website.com/wp-admin/upgrade.php?_wphttp_referrer=%2Fwp-admin%2F)
 * It seems that the issue is caused by a difference in the database version number.
   I’m updating wp-include/version.php to force a match to the database’s version.
 * It can be fixed only if I change the number on both places (phpMyAdmin and versions.
   php file) to be the lower number.
 * This happens after every WordPress upgrade for the past around 3 upgrades as 
   far as I remember. I haven’t changed anything before that started happening.
 * Any helps is greatly appreciated!

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

 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [2 years ago](https://wordpress.org/support/topic/problem-with-database-version-after-wordpress-upgrade/#post-17761526)
 * Flushing any caches that touch your site is the common fix for this kind of post-
   upgrade issue: [https://wordpress.org/support/topic/read-this-first-wordpress-master-list/#post-14157464](https://wordpress.org/support/topic/read-this-first-wordpress-master-list/#post-14157464)
 *  Thread Starter [TheGreyRabbit](https://wordpress.org/support/users/ayo-1/)
 * (@ayo-1)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/problem-with-database-version-after-wordpress-upgrade/#post-17950645)
 * Flushing caches doesn’t help unfortunately.
 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/problem-with-database-version-after-wordpress-upgrade/#post-17951102)
 * Does your hosting provider offer WP-CLI over shell (aka SSH)?
 * If so, please try `wp cache flush`
 * [https://developer.wordpress.org/cli/commands/cache/flush/](https://developer.wordpress.org/cli/commands/cache/flush/)

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

The topic ‘Problem with database version after WordPress upgrade’ is closed to new
replies.

## Tags

 * [database](https://wordpress.org/support/topic-tag/database/)
 * [sql](https://wordpress.org/support/topic-tag/sql/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [James Huff](https://wordpress.org/support/users/macmanx/)
 * Last activity: [1 year, 9 months ago](https://wordpress.org/support/topic/problem-with-database-version-after-wordpress-upgrade/#post-17951102)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
