This section describes how to create a object to represent the connection to a MySQL server.
If you want perform any database transactions to a MySQL server,
you must create a connection object first by calling the mysql_connect() function.
A MySQL server may have multiple databases, so you also need to select a database
as the current target database by calling the mysql_select_db() function.
Here are the calling formats of these two functions: