Skip to content

Instantly share code, notes, and snippets.

@jpmattia
jpmattia / wp-mysql-test.php
Created Nov 7, 2012 — forked from sivel/wp-mysql-test.php
Database connection test script for WordPress
View wp-mysql-test.php
<?php
/**
* Database connection test script for WordPress
*
* Parses the wp-config.php file for DB connection information and tests
* a mysql connection to the DB server and selection of the database.
* Errors will be reported. Attempts will be made to repair table errors.
*
* Place this file in the same directory as wp-config.php
*