Title: MySQLi database layer
Author: Marko Heijnen
Published: <strong>2013 年 6 月 23 日</strong>
Last modified: 2013 年 9 月 18 日

---

搜索插件

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

![](https://s.w.org/plugins/geopattern-icon/mysqli.svg)

# MySQLi database layer

 作者：[Marko Heijnen](https://profiles.wordpress.org/markoheijnen/)

[下载](https://downloads.wordpress.org/plugin/mysqli.1.1.zip)

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

 [支持](https://wordpress.org/support/plugin/mysqli/)

## 描述

MySQL_* functions is deprecated and this plugin creates a layer to use MySQLi instead.
So you don’t get notices when using PHP 5.5

Be sure to read the installation instructions, as this is **not** a traditional 
plugin, and on activation you do need to install our database driver by using the
settings screen or move manually db.php into your content directory.

## 安装

 1. Verify that you have MySQLi
 2. Go to the settings page of this plugin and install our driver or just copy `db.
    php` to your WordPress content directory (`wp-content/` by default)
 3. Done!

## 评价

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

### 󠀁[Super useful to run locally old websites!](https://wordpress.org/support/topic/super-useful-to-run-locally-old-websites/)󠁿

 [coccoinomane](https://profiles.wordpress.org/coccoinomane/) 2019 年 6 月 10 日

It saved my day, I was having a hard time running locally an obsolete website with
PHP56 and WordPress 3.5.1… placing db.php from this plugin in my wp-content folder
worked! Now I don’t get anymore the error “Your PHP installation appears to be missing…”.
Thanks!

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

### 󠀁[good](https://wordpress.org/support/topic/good-2027/)󠁿

 [vanlich82](https://profiles.wordpress.org/vanlich82/) 2016 年 9 月 3 日

Thank you

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

### 󠀁[Helpful when running dated WordPress sites](https://wordpress.org/support/topic/helpful-when-running-dated-wordpress-sites/)󠁿

 [Ethan O’Sullivan](https://profiles.wordpress.org/ethanosullivan/) 2016 年 9 月
3 日

I was restoring an old WordPress site (v3.7.1) that I haven’t touched in over 3 
years that on my WAMP server. Even though this plugin hasn’t been updated for just
as long, it was helpful in fixing the depreciation notices that I was getting for
mysqli, thank you.

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

### 󠀁[This is awesome](https://wordpress.org/support/topic/this-is-awesome-51/)󠁿

 [arun0731](https://profiles.wordpress.org/arun0731/) 2016 年 9 月 3 日

Solved mine. thank you so much

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

### 󠀁[works](https://wordpress.org/support/topic/works-1160/)󠁿

 [Yui](https://profiles.wordpress.org/fierevere/) 2017 年 2 月 7 日

PS: conflicts: wp-cleanup plugin

 [ 阅读所有12条评价 ](https://wordpress.org/support/plugin/mysqli/reviews/)

## 贡献者及开发者

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

贡献者

 *   [ Marko Heijnen ](https://profiles.wordpress.org/markoheijnen/)
 *   [ CodeKitchen ](https://profiles.wordpress.org/codekitchen/)

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

### 对开发感兴趣吗?

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

## 额外信息

 *  版本 **1.1**
 *  最后更新：**13 年前**
 *  活跃安装数量 **100+**
 *  WordPress 版本 ** 3.6 或更高版本 **
 *  已测试的最高版本为 **3.6.1**
 *  语言
 * [English (US)](https://wordpress.org/plugins/mysqli/)
 * 标签
 * [backend](https://cn.wordpress.org/plugins/tags/backend/)[database](https://cn.wordpress.org/plugins/tags/database/)
 *  [高级视图](https://cn.wordpress.org/plugins/mysqli/advanced/)

## 评级

 4.7 星（最高 5 星）。

 *  [  12 条 5 星评价     ](https://wordpress.org/support/plugin/mysqli/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/mysqli/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/mysqli/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/mysqli/reviews/?filter=2)
 *  [  1 条 1 星评价     ](https://wordpress.org/support/plugin/mysqli/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/mysqli/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/mysqli/reviews/)

## 贡献者

 *   [ Marko Heijnen ](https://profiles.wordpress.org/markoheijnen/)
 *   [ CodeKitchen ](https://profiles.wordpress.org/codekitchen/)

## 支持

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

 [查看支持论坛](https://wordpress.org/support/plugin/mysqli/)