- Download WP MySQL Profiler and extract the archive.
- Rename your wp-db.php file in wp-includes directory to wp-db-backup.php.
- Upload wp-db.php included in the archive to your wp-includes directory.
- Upload wpSqlProfiler.php to wp-content/plugins/ directory.
- Edit your wp-config.php. Find define (‘WPLANG’, ”); and add below:
define('SAVEQUERIES', true);
- Enable “WP MySQL Profiler” plugin from the admin CP.
Visit http://wpsplash.com/mysql-profiler-plugin-for-wordpress/ for more info.