How To Configure PDO Mysql Driver On Ubuntu

I assume that you have lamp stack installed in your system. And if you have PHP version lower than 5.1, you have to you have to upgrade it to php5.

Step 1: Check the PHP info if the PDO driver is already installed. It will be automatically installed if you installed the latest lamp server. You can check the PHP info by running the following script on the server.

Step 2: Run the script and you will find the whole PHP info. Click cntrl+F and check for PDO. You will find the PDO info like the image below.

Step 3: Just add the following line to the php.ini file. You can find the location of the php.ini file in the phpinfo page.

Step 4: Restart the apache server using the following command.

Step 5: run the following script to see if your PDO driver and mysql connection are working or not.
Step 6: If you get the error ” driver not found”, you have to recheck your installation.


Git Clone Error:

Issue: In Jenkins, when I am trying to clone a git repository I am getting the following…

Read more

1. If, else and ifelse:[crayon-5c9045164efc3746312214/]2. Conditional statement using ternary…

Read more

What is powershell:              Windows powershell is an excellent command line…

Read more

Internet is huge! Help us find great content


The Best Tutorials & Tips to Speedup Your DevOps Workflow.

Created by Bibin Wilson.