database Wordpress 错误:需要更新数据库
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/17308436/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Wordpress Error: Database Update Required
提问by user2521873
I'm currently working with a client right now that clicked to update a plugin on WordPress. He's unaware of what plugin it was that he updated because he's clicked update in the past for other plugins and they just updated, so he paid little attention to what it was he clicked.
我目前正在与一个客户合作,该客户点击更新 WordPress 上的插件。他不知道他更新的是哪个插件,因为他过去点击了其他插件的更新,而他们刚刚更新,所以他很少注意他点击了什么。
His site is still up, but when I try to get into the back end using /wp-admin I'm hit with a message that states:
他的网站仍在运行,但是当我尝试使用 /wp-admin 进入后端时,我收到一条消息,指出:
Database Update Required
WordPress has been updated! Before we send you on your way, we have to update your database to the newest version.
The update process may take a little while, so please be patient.
Update Wordpress Database
需要更新数据库
WordPress 已更新!在我们送您上路之前,我们必须将您的数据库更新到最新版本。
更新过程可能需要一点时间,请耐心等待。
更新 Wordpress 数据库
When I click on the button that says "Update WordPress Database" it does nothing. The browser spins and then shows me a blank white page with Wordpress at the top. I'm at a loss because I can't even login, it doesn't give me the option.
当我单击“更新 WordPress 数据库”按钮时,它什么也不做。浏览器旋转,然后向我显示一个空白页面,顶部有 Wordpress。我不知所措,因为我什至无法登录,它没有给我选择。
Any thoughts on what is happening? Thanks a bunch in advance for the assistance.
对正在发生的事情有什么想法吗?提前感谢一堆人的帮助。
回答by Francisco Corrales Morales
This is due to a missmatch between the databases versions you said you are using in the settings.
这是由于您在设置中使用的数据库版本不匹配。
Please follow this steps:
请按照以下步骤操作:
- Go to
/wp-include/folder and open theversion.php. - Find the value for
$wp_db_version, and write it down. - Now, open your database, check in the table called
wp_options Find the
db_versionvalue:SELECT option_value FROM yourdatabase.wp_options WHERE option_name = 'db_version';Those two values must be the same. Change it in the
version.phpfile, not the database.
- 转到
/wp-include/文件夹并打开version.php. - 找出 的值
$wp_db_version,并写下来。 - 现在,打开您的数据库,检查名为
wp_options 找到
db_version值:SELECT option_value FROM yourdatabase.wp_options WHERE option_name = 'db_version';这两个值必须相同。在
version.php文件中更改它,而不是在数据库中。
回答by m.rum
Restarting php-fpm service helped me, it clears cache on restart
重新启动 php-fpm 服务对我有帮助,它在重新启动时清除缓存
sudo service php5-fpm restart
Hope that helps some folks out there.
希望能帮助到那里的一些人。
回答by markratledge
- Try clearing your browser cache
- The option db_upgraded isn't getting set by the upgrade process.
Try this: go to
/wp-admin/options.php. Fill the fielddb_upgradedwith a0(zero). Hit Save Changes.
- 尝试清除浏览器缓存
- 升级过程未设置选项 db_upgraded。试试这个:去
/wp-admin/options.php。db_upgraded用0(零)填充该字段。点击保存更改。
回答by kavit
This is due to a missmatch between the databases versions you said you are using in the settings.
这是由于您在设置中使用的数据库版本不匹配。
Please follow this steps:
请按照以下步骤操作:
- Go to
/wp-include/folder and open theversion.php. - Find the value for
$wp_db_version, and write it down. - Open your database, check in the table called
wp_options Find the db_version value:
SELECT option_value FROM yourdatabase.wp_options WHERE option_name = 'db_version';
- 转到
/wp-include/文件夹并打开version.php. - 找出 的值
$wp_db_version,并写下来。 - 打开您的数据库,检查名为
wp_options 查找 db_version 值:
SELECT option_value FROM yourdatabase.wp_options WHERE option_name = 'db_version';
Those two values must be the same. Change it in the version.phpfile, not the database.
这两个值必须相同。在version.php文件中更改它,而不是在数据库中。

