How to Connect MySql Database using PHP

How to Connect MySql Database using PHPHow to connect MySql database using PHP. PHP provides inbuilt functions to connect to MySql database using their extensions. In this post, I’ll explain how to connect MySql Database using  PHP.

In PHP, you can connect MySql database using following extensions.

PHP PDO Tutorial to Connect MySql Database

How to connect MySql Database using PHP PDO (PHP Data Objects). What’s the advantage of using PHP data objects.

Subscribe Our Tutorials

Get Latest Updates on Facebook

PHP PDO (PHP data objects) is a database access layer providing a uniform method of access to multiple databases. PHP Data Objects is written to provide a consistent API.  Before MySqli and PDO, we used MySql API to connect MySql Database. Let’s see how PDO is better than MySql Api.