I just updated to 3.1.3 and now when I go to the admin I get the “Database Update Required” /wp-admin/upgrade.php
screen. I click ‘Upgrade Now’ and it says it’s done, but then trying to access anything in the admin gets me the same screen again. How do I get past this?
EDIT: In trying to use toscho’s solution, I discovered that my wordpress db tables are not writable, which likely led to the error loop. Any ideas for how to track that down?
I had the same problem recently. For some reason the option
db_upgraded
isnât set by the upgrade process.Fix
/wp-admin/options.php
.db_upgraded
with a0
(zero).Done.
If you didn’t disable all your plugins before updating do it manually by renaming the wp-content/plugins directory.
Clear your browsers cache and all cookies and try again.
If your still having the problem open the file wp-includes/version.php to make sure it is the correct file for 3.1.3.
You should see this database version:
If everything checks out and your still having the problem add this to your wp-config.php file:
define('WP_ALLOW_REPAIR', true);
Navigate to : yoursite.com/wp-admin/maint/repair.php to attempt a database repair.
What WordPress version are you updating from?
Discovered that the db files I copied over from another machine had incorrect ownership. Once I
chown -R mysql:mysql myblogdbdirectory
and restarted MySQL, the database upgrade worked.I just had the same problem and I got to see there was no space left on device. Database could not save data, so it could not update. For some users, it is worth checking.
For me it was permissions of the DB user and the DB. They were too strict, once I gave the user ALL privileges, I was able to get passed the loop.
Either fix the user permissions of your SQL user, or use root if you have access to that SQL user.
I solved this issue by using the
core upgrade-db
function of the WP-CLI project. It’s designed to perform exactly the same task, but using the command line instead of the web.For me, the solution was to restart memcached. We’re using the Memcached plugin.