Skip to content

Instantly share code, notes, and snippets.

@stracker-phil
Created March 11, 2019 09:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stracker-phil/633a16fd652b2fed5a12044781995b51 to your computer and use it in GitHub Desktop.
Save stracker-phil/633a16fd652b2fed5a12044781995b51 to your computer and use it in GitHub Desktop.
<?php
// Add this code at the end of wp-config.php
// ...
$link = mysqli_connect( DB_HOST, DB_USER, DB_PASSWORD );
if ( ! $link ) {
die( 'Could not connect: ' . mysqli_connect_error() );
} else {
die( 'DB Connection is working' );
}
/* That's all, stop editing! Happy blogging. */
// ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment