<?php
$db_host = ;
$db_user = ;
$db_password = ;
$db_name = ;
$link = mysqli_connect($db_host, $db_user, $db_password, $db_name);
if (!$link) {
die('<p style="color:red">'.mysqli_connect_errno().' - '.mysqli_connect_error().'</p>');
}
echo "<p>Вы подключились к MySQL!</p>";
?>