Connecting with RDBMS and editing, adding, and deleting databases therein are all done through PHP functions
Connect with MySQL RDBMS
PHP Code:
mysql_connect($hostName, $userName, $password) or die("Unable to connect to host $hostName");
Connect with database
PHP Code:
mysql_select_db($dbName, $con_var) or die("Unable to select database $dbName");