Free Hosting Tutorials

How to check mysql connection in cpanel with PHP

How to check mysql connection in cpanel 1.Log into the cpanel. 2.Choose mysql > create a database and add the user to that database. 3.Give full previleage to that user. 4.Now upload the test.php file into the public_html with the following contents <? $hostname=”localhost”; $user=”root”; $pass=”root1?; $dbase=”emp”; $connection = mysql_connect(“$hostname” , “$user” , “$pass”); $db […]