Title: Persistent database connection updater
Author: Bibin Kurian
Published: <strong>2014 年 8 月 21 日</strong>
Last modified: 2014 年 8 月 21 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/persistent-database-connection-updater.
svg)

# Persistent database connection updater

 作者：[Bibin Kurian](https://profiles.wordpress.org/bibinkurian/)

[下载](https://downloads.wordpress.org/plugin/persistent-database-connection-updater.1.0.zip)

 * [详情](https://cn.wordpress.org/plugins/persistent-database-connection-updater/#description)
 * [评价](https://cn.wordpress.org/plugins/persistent-database-connection-updater/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/persistent-database-connection-updater/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/persistent-database-connection-updater/#developers)

 [支持](https://wordpress.org/support/plugin/persistent-database-connection-updater/)

## 描述

This WordPress plugin automatically updates the MySQL database connection to persistent
connection when user update the WordPress version from backend. This plugin is developed
to use persistent database connection in Microsoft Azure environment for better 
performance with clearDB.

## 安装

 1. Extract the Persistent database connection updater plugin persistent-connection-
    updater.zip to the plugins directory of the WordPress installation.
     e.g. if WordPress
    is installed in “C:\inetpub\wwwroot\wordpress” directory, extract the persistent-
    connection-updater.zip file into directory “C:\inetpub\wwwroot\wordpress\wp-content\
    plugins”.
 2. To activate the plugin, log in into the WordPress as administrator and navigate
    to list of plugins. Then check the associated checkbox for the plugin and click
    on “Activate” link.
 3. If you would like to use this as a must use plugin then instead of step 1 & 2 copy
    the persistent-connection-updater.php file to “wp-content/mu-plugins” folder.

## 评价

![](https://secure.gravatar.com/avatar/bf9e5f83a035114292af2b5abec85cbfd28550e3e6efcf0f8172e786d37257d3?
s=60&d=retro&r=g)

### 󠀁[persistent connections are not reliable on cleardb shared plans](https://wordpress.org/support/topic/persistent-connections-are-not-reliable-on-cleardb-shared-plans/)󠁿

 [prashanthmadi](https://profiles.wordpress.org/prashanthmadi/) 2016 年 9 月 3 日
1 回复

Our findings are that persistent connections are inconsistent and should not be 
used. Sometimes they take 200 milliseconds and other times, they can take up to 
19 seconds. In other words, persistent connections are not an auto-fix. The main
problem is that sometimes the persistent connection is lost (ironically). And it
spends time looking to re-establish that connection. If it doesn’t find it, it will
create a new one, but it spends ~19s doing this dance. So you would see a very slow
loading web page (19s+) and will observe “MySQL Server has gone away” in the PHP
error logs when this occurs. persistent connections are not reliable on shared plans

 [ 阅读所有1条评价 ](https://wordpress.org/support/plugin/persistent-database-connection-updater/reviews/)

## 贡献者及开发者

「Persistent database connection updater」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Bibin Kurian ](https://profiles.wordpress.org/bibinkurian/)

[帮助将「Persistent database connection updater」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/persistent-database-connection-updater)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/persistent-database-connection-updater/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/persistent-database-connection-updater/)，
或通过[RSS](https://plugins.trac.wordpress.org/log/persistent-database-connection-updater/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/persistent-database-connection-updater/)。

## 更新日志

#### 1.0

 * First release of Persistent database connection updater.

## 额外信息

 *  版本 **1.0**
 *  最后更新：**12 年前**
 *  活跃安装数量 **70+**
 *  WordPress 版本 ** 3.9.1 或更高版本 **
 *  已测试的最高版本为 **3.9.40**
 *  语言
 * [English (US)](https://wordpress.org/plugins/persistent-database-connection-updater/)
 * 标签
 * [microsoft azure](https://cn.wordpress.org/plugins/tags/microsoft-azure/)[mysql](https://cn.wordpress.org/plugins/tags/mysql/)
 *  [高级视图](https://cn.wordpress.org/plugins/persistent-database-connection-updater/advanced/)

## 评级

 4 星（最高 5 星）。

 *  [  0 条 5 星评价     ](https://wordpress.org/support/plugin/persistent-database-connection-updater/reviews/?filter=5)
 *  [  1 条 4 星评价     ](https://wordpress.org/support/plugin/persistent-database-connection-updater/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/persistent-database-connection-updater/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/persistent-database-connection-updater/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/persistent-database-connection-updater/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/persistent-database-connection-updater/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/persistent-database-connection-updater/reviews/)

## 贡献者

 *   [ Bibin Kurian ](https://profiles.wordpress.org/bibinkurian/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/persistent-database-connection-updater/)