In this tutorial fully explained about Mysql Database Connection, so for that i have 
created the connection.php file for connecting the databse.