Title: Run SQL Query
Author: Fabricio Carella
Published: <strong>August 1, 2016</strong>
Last modified: August 1, 2016

---

Search plugins

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

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

# Run SQL Query

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

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

 * [Details](https://sa.wordpress.org/plugins/run-sql-query/#description)
 * [Reviews](https://sa.wordpress.org/plugins/run-sql-query/#reviews)
 *  [Installation](https://sa.wordpress.org/plugins/run-sql-query/#installation)
 * [Development](https://sa.wordpress.org/plugins/run-sql-query/#developers)

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

## Description

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.

## Screenshots

 * [[
 * Run SQL Query plugin screen

## Installation

 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).

## FAQ

  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.

## Reviews

![](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/) September 3, 2016

The Plugin works great

 [ Read all 1 review ](https://wordpress.org/support/plugin/run-sql-query/reviews/)

## Contributors & Developers

“Run SQL Query” is open source software. The following people have contributed to
this plugin.

Contributors

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

[Translate “Run SQL Query” into your language.](https://translate.wordpress.org/projects/wp-plugins/run-sql-query)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/run-sql-query/), check
out the [SVN repository](https://plugins.svn.wordpress.org/run-sql-query/), or subscribe
to the [development log](https://plugins.trac.wordpress.org/log/run-sql-query/) 
by [RSS](https://plugins.trac.wordpress.org/log/run-sql-query/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.0

 * Initial version

## Meta

 *  Version **1.0.0**
 *  Last updated **10 वर्षाः ago**
 *  Active installations **700+**
 *  WordPress version ** 4.4 or higher **
 *  Tested up to **4.5.33**
 *  Language
 * [English (US)](https://wordpress.org/plugins/run-sql-query/)
 * Tags
 * [admin](https://sa.wordpress.org/plugins/tags/admin/)[database](https://sa.wordpress.org/plugins/tags/database/)
   [manager](https://sa.wordpress.org/plugins/tags/manager/)[query](https://sa.wordpress.org/plugins/tags/query/)
   [sql](https://sa.wordpress.org/plugins/tags/sql/)
 *  [Advanced View](https://sa.wordpress.org/plugins/run-sql-query/advanced/)

## Ratings

 5 out of 5 stars.

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

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

[See all reviews](https://wordpress.org/support/plugin/run-sql-query/reviews/)

## Contributors

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

## Support

Got something to say? Need help?

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

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](https://github.com/Sefirost/run-sql-query)