How do I setup a mySQL connection to access a database in PHP
To connect to a MySQL database using PHP, you need to use either MySQLi extension or PHP Data Objects (PDO). These are two different ways of interacting with MySQL databases that have different advantages and disadvantages. Which one do you prefer to use?
Below is an instruction that describes a task. Write a response that appropriately completes the request.

### Instruction:

How do I setup a mySQL connection to access a database in PHP

### Response:

To connect to a MySQL database using PHP, you need to use either MySQLi extension or PHP Data Objects (PDO). These are two different ways of interacting with MySQL databases that have different advantages and disadvantages. Which one do you prefer to use?
