升级WordPress时提示”另一更新正在进行”的解决方法

前端之家收集整理的这篇文章主要介绍了升级WordPress时提示”另一更新正在进行”的解决方法前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

wordpress升级的过程中,如果你刷新页面或者关闭页面会造成wordpress升级不成功,下次再进行升级时可能会遇到这样或者那样的问题。比如我前几天升级时刷新了页面,再次升级wordpress时,一直提示”另一更新正在进行”。

这是由于在升级wordpress的过程时,wordpress会在数据库 wp_options 表中增加 core_updater.lock 记录。若中途打断wordpress程序的升级,这个记录会保留在数据库中。当下次升级时,wordpress检测到此记录的存在就会返回”另一更新正在进行”。

可通过以下两种方法解决

方法一、通过MysqL数据库管理工具(比如 PHPMyAdmin 或 navicat),在 wp_options 表中找到 core_updater.lock记录并将这一列数据并且删除

方法二、通过终端登录数据库,假设表前缀是_wp,数据库wordpress,使用以下命令进行操作:

Crayon-5c891c9f700f1642634050" class="Crayon-Syntax Crayon-theme-classic Crayon-font-monaco Crayon-os-pc print-yes notranslate" data-settings=" minimize scroll-mouSEOver" style=" margin-top: 12px; margin-bottom: 12px; font-size: 12px !important; line-height: 15px !important;">
Crayon-toolbar" data-settings=" mouSEOver overlay hide delay" style="font-size: 12px !important;height: 18px !important; line-height: 18px !important;">Crayon-title">
Crayon-tools" style="font-size: 12px !important;height: 18px !important; line-height: 18px !important;">
Crayon-button Crayon-nums-button" title="Toggle Line Numbers">
Crayon-button-icon">
Crayon-button Crayon-plain-button" title="Toggle Plain Code">
Crayon-button-icon">
Crayon-button Crayon-wrap-button" title="Toggle Line Wrap">
Crayon-button-icon">
Crayon-button Crayon-expand-button" title="Expand Code">
Crayon-button-icon">
Crayon-button Crayon-copy-button" title="Copy">
Crayon-button-icon">
Crayon-button Crayon-popup-button" title="Open Code In New Window">
Crayon-button-icon">
Crayon-language">Shell
Crayon-info" style="min-height: 16.8px !important; line-height: 16.8px !important;">
Crayon-plain-wrap">
Crayon-main" style="">Crayon-table">Crayon-row">
Crayon-nums " data-settings="show">
Crayon-nums-content" style="font-size: 12px !important; line-height: 15px !important;">
Crayon-num" data-line="Crayon-5c891c9f700f1642634050-1">1
Crayon-num Crayon-striped-num" data-line="Crayon-5c891c9f700f1642634050-2">2
Crayon-num" data-line="Crayon-5c891c9f700f1642634050-3">3
Crayon-num Crayon-striped-num" data-line="Crayon-5c891c9f700f1642634050-4">4
Crayon-num" data-line="Crayon-5c891c9f700f1642634050-5">5
Crayon-code">
Crayon-pre" style="font-size: 12px !important; line-height: 15px !important; -moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4;">
Crayon-line" id="Crayon-5c891c9f700f1642634050-1">Crayon-v">MysqLCrayon-h"> Crayon-o">-Crayon-i">uCrayon-h"> Crayon-v">rootCrayon-h"> Crayon-o">-Crayon-i">p
Crayon-line Crayon-striped-line" id="Crayon-5c891c9f700f1642634050-2">Crayon-h">
Crayon-line" id="Crayon-5c891c9f700f1642634050-3">Crayon-st">useCrayon-h"> Crayon-v">wordpressCrayon-sy">;
Crayon-line Crayon-striped-line" id="Crayon-5c891c9f700f1642634050-4">Crayon-h">
Crayon-line" id="Crayon-5c891c9f700f1642634050-5">Crayon-v">selectCrayon-h"> Crayon-o">*Crayon-h"> Crayon-e">from Crayon-v">wpCrayon-o">-Crayon-e">options Crayon-e">where Crayon-v">options_nameCrayon-o">=Crayon-s">'core_updater.lock'Crayon-sy">;

查询到的结果如下图:

然后使用如下命令删除 core_updater.lock 记录:

Crayon-5c891c9f700f9139520484" class="Crayon-Syntax Crayon-theme-classic Crayon-font-monaco Crayon-os-pc print-yes notranslate" data-settings=" minimize scroll-mouSEOver" style=" margin-top: 12px; margin-bottom: 12px; font-size: 12px !important; line-height: 15px !important;">
Crayon-toolbar" data-settings=" mouSEOver overlay hide delay" style="font-size: 12px !important;height: 18px !important; line-height: 18px !important;">Crayon-title">
Crayon-tools" style="font-size: 12px !important;height: 18px !important; line-height: 18px !important;">
Crayon-button Crayon-nums-button" title="Toggle Line Numbers">
Crayon-button-icon">
Crayon-button Crayon-plain-button" title="Toggle Plain Code">
Crayon-button-icon">
Crayon-button Crayon-wrap-button" title="Toggle Line Wrap">
Crayon-button-icon">
Crayon-button Crayon-expand-button" title="Expand Code">
Crayon-button-icon">
Crayon-button Crayon-copy-button" title="Copy">
Crayon-button-icon">
Crayon-button Crayon-popup-button" title="Open Code In New Window">
Crayon-button-icon">
Crayon-language">Shell
Crayon-info" style="min-height: 16.8px !important; line-height: 16.8px !important;">
Crayon-plain-wrap">
Crayon-main" style="">Crayon-table">Crayon-row">
Crayon-nums " data-settings="show">
Crayon-nums-content" style="font-size: 12px !important; line-height: 15px !important;">
Crayon-num" data-line="Crayon-5c891c9f700f9139520484-1">1
Crayon-code">
Crayon-pre" style="font-size: 12px !important; line-height: 15px !important; -moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4;">
Crayon-line" id="Crayon-5c891c9f700f9139520484-1">Crayon-e">delete Crayon-e">from Crayon-e">wp_options Crayon-e">where Crayon-v">option_nameCrayon-o">=Crayon-s">'core_updater.lock'Crayon-sy">;

最后,我们再去执行升级wordpress,就没有这个”另一更新正在进行”错误提示了,问题解决了。

原文链接:https://www.f2er.com/wordpress/238341.html

猜你在找的wordpress相关文章