This plugin is outdated and might not be supported anymore
SQL Executioner

SQL Executioner

Details
View on WordPress

Instead of needing a tool like phpMyAdmin
or the mysql command line client to view and modify your WordPress database,
the SQL Executioner allows you to run arbitrary SQL queries against your
WordPress database from within the Admin. In many cases this allows you to bypass
the inherent limitations of the WordPress Admin interface, and use the full expressive
power of SQL to analyze and update your blog’s database.

To use simply install and visit the Tools > SQL Executioner page.

If you’re interested in contributing to the code behind this plugin, it’s also hosted on GitHub:
https://github.com/justincwatt/wp-sql-executioner

Details

Plugin code:
sql-executioner
Plugin version:
1.4
Outdated:
Yes
WP version:
3.0 or higher
PHP version:
or higher
Test up to WP version:
4.6.29
Total installations:
2,000
Last updated:
2016-09-28
Rating:
Times rated:
11
dba
mysql
phpmyadmin
query
sql