May 13, 2013
You can use the following php script which is used to test mysql database connection on your cpanel server. <?php $link = mysql_connect(‘db_host’, ‘db_username’, ‘db_password’); if (!$link) { die(‘Could not connect the database: ‘ . mysql_error()); } echo ‘Database Connected successfully’; mysql_close($link); ?> db_host : Mostly used ‘localhost’ when you connect on the same server. […]