How to connect to a MySQL database using PHP

How to connect to a MySQL database using PHP

MySQL is a relational database management system (RDBMS) that runs as a server providing multi-user access to a number of databases. So how do we connect to a database using PHP. There are many ways of connecting but here is one simple way. We connect to a database so that we can access datas that are [...]