Can you run the below code and see what you get.
Code: Select all
<?php
/*
DB test code written by [email protected] (https://robot.lk)
02/03/2011
*/
// connect to the mysql server
$link = mysql_connect('localhost', 'root', '');
if (!$link) {
die ("Could not connect to the MySQL server.<br> Error: ".mysql_error());
}
// select the database
$db_selected = mysql_select_db('wordpress', $link);
if (!$db_selected) {
die ("Could not select database.<br> Error: ".mysql_error());
}
echo "DB Connection Successful";
?>