MySQL is an open source database server. MySQL Database powers the most demanding Web, E-commerce and Online Transaction Processing (OLTP) applications. It is a fully integrated transaction-safe, ACID (Atomicity Consistency Isolation Durability) compliant database with full commit, rollback, and crash recovery and row level locking capabilities. MySQL delivers the ease of use, scalability, and performance that has made MySQL the world's most popular open source database.

 In this article I will show you, how to use MySQL database with PHP. To use of MySQL database with PHP, make some changes in php.ini file.

Change 1:

Open ‘php.ini’ file and configure as follows:

Configure MySQL Database

From above file, uncomment the highlighted line by removing semicolon (;) from front of this line.

Change 2:

Open ‘php.ini’ file and find out ‘extension_dir’ after that set the extension directory path.

Configure MySQL Database

Here “C:\php\ext\” is directory path where I had install php.

After making above two changes in php.ini file, restart your apache server. Now your MySQL database server is ready for use with PHP.

  Modified On Sep-07-2019 12:12:38 AM

Leave Comment