Sample MYSQL Connection String

Solution :

Please find the sample connection string for mysql database.

Connect to the database
mysql_connect (‘localhost’, ‘UserName’, ‘Password’) ;
mysql_select_db (‘DatabaseName’);

Connected successfully