How to create a mysql connection in PHP? There are two methods to create a MySQL connection in PHP: With PHP’s MySQLi Extension With PHP Data Objects (PDO) 22-August 8:57 PM 523 Views