Title: Run SQL Query
Author: Fabricio Carella
Published: <strong>2016 年 8 月 1 日</strong>
Last modified: 2016 年 8 月 1 日

---

搜索插件

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

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

# Run SQL Query

 作者：[Fabricio Carella](https://profiles.wordpress.org/sefirost/)

[下载](https://downloads.wordpress.org/plugin/run-sql-query.zip)

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

 [支持](https://wordpress.org/support/plugin/run-sql-query/)

## 描述

This plugin will allow you to execute any type of SQL query into the WordPress’s
DB connecting through the driver provided by the MySQLi extension without the need
to use another tool like phpMyAdmin.

It also gives you the ability to export the results in a CSV format file.

In order to access this plugin’s admin page (Tools -> Run SQL Query), your account
needs to have the `install_plugins` capability, that means a Super Admin in the 
multi-site installation or an Admin in a single site.

Feel free to contribute:
 https://github.com/Sefirost/run-sql-query

Use on you own risk. Under no circumstances will the Author of this plugin assume
responsibility or liability for any damages or destructive effects on the database
resulting from the queries executed using this tool.

## 屏幕截图

 * [[
 * Run SQL Query plugin screen

## 安装

 1. Upload the plugin folder `run-sql-query` to the `/wp-content/plugins/` directory
    or by using the “Add Plugin” function of WordPress.
 2. Activate the plugin `Run Sql Query` through the ‘Plugins’ menu in WordPress
 3. The plugin page can be accessed via the ‘Run SQL Query’ link under ‘Tools’ menu
    in the administration area of a site (if your role is Admin for site administration
    role for single-site installs, or Super Admin for network installs).

## 常见问题

  Where is the plugin page to run the queries?

The plugin page can be accessed via the ‘Run SQL Query’ link under ‘Tools’ menu 
in the administration area of a site (if your role is Admin for site administration
role for single-site installs, or Super Admin for network installs).

  Can a query make unrecoverable changes in the database?

Yes, and this plugin doesn’t provide and a way to undo the changes. Under no circumstances
will the Author of this plugin assume responsibility or liability for any damages
or destructive effects on the database resulting from the queries executed using
this tool.

  What driver it uses to connect to the Database?

Unlike other similar plugins it uses the driver provided by the MySQLi extension
included since PHP 5.3.0 which is designed to work with MySQL version 4.1.13 or 
newer.

## 评价

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

### 󠀁[Great Plugin](https://wordpress.org/support/topic/great-plugin-10594/)󠁿

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

The Plugin works great

 [ 阅读所有1条评价 ](https://wordpress.org/support/plugin/run-sql-query/reviews/)

## 贡献者及开发者

「Run SQL Query」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Fabricio Carella ](https://profiles.wordpress.org/sefirost/)

[帮助将「Run SQL Query」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/run-sql-query)

### 对开发感兴趣吗?

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

## 更新日志

#### 1.0

 * Initial version

## 额外信息

 *  版本 **1.0.0**
 *  最后更新：**10 年前**
 *  活跃安装数量 **600+**
 *  WordPress 版本 ** 4.4 或更高版本 **
 *  已测试的最高版本为 **4.5.33**
 *  语言
 * [English (US)](https://wordpress.org/plugins/run-sql-query/)
 * 标签
 * [admin](https://cn.wordpress.org/plugins/tags/admin/)[database](https://cn.wordpress.org/plugins/tags/database/)
   [manager](https://cn.wordpress.org/plugins/tags/manager/)[query](https://cn.wordpress.org/plugins/tags/query/)
   [sql](https://cn.wordpress.org/plugins/tags/sql/)
 *  [高级视图](https://cn.wordpress.org/plugins/run-sql-query/advanced/)

## 评级

 5 星（最高 5 星）。

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

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

[查看全部评论](https://wordpress.org/support/plugin/run-sql-query/reviews/)

## 贡献者

 *   [ Fabricio Carella ](https://profiles.wordpress.org/sefirost/)

## 支持

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

 [查看支持论坛](https://wordpress.org/support/plugin/run-sql-query/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://github.com/Sefirost/run-sql-query)