PHP Create a Connection to a MySQL Database – PHP May 28, 2011 Pramod T P Leave a comment mysql_connect(SERVER-NAME,USER-NAME,PASSWORD); eg: <?php mysql_connect(“localhost”,”root”,”user1″); ?>