Setup a .php file with the following code
<?php
$link = @mysqli_connect('host', 'user', 'secret');
if(!$link) {
die('failed to connect to the server: ' . mysqli_connect_error());
}
if(!@mysqli_select_db($link, 'dbname')) {
die('failed to connect to the database: ' . mysqli_error($link));
}
?>...