How to install pdo_mysql on Windows

Recently, a project required using the PHP extension PDO_MYSQL. Since mostly we use windows to develop code on to an Apache with PHP and MYSQL(WAMP), we had a lot of trouble to make the PDO_MYSQL php extension work.

After some research, we managed to get it going. To save you time, here are the steps we took to make the extension work on our webservers:

1. Edit the php.ini configuration - find and remove the ";" from the below two lines:

Change:
;extension=php_pdo.dll ;extension=php_pdo_mysql.dll
To:
extension=php_pdo.dll extension=php_pdo_mysql.dll

2. Save the php.ini file and restart the webserver.

3. You are done!

It appears that you need to activate the php_pdo.dll extension to have the php_pdo_mysql.dll work.

Hope this short how-to helps :-).

Latest News

Clients Say

  • Neil Acheampong

    UnicornCMS to me is the fastest and easiest to use platform out there. I am not a progra...

  • Mark McFarlan

    They give us a great service for the best price. Their quick and proficient support was a...

  • Mike

    You guys are really great! Using your services is wonderful. I already recommended your C...

  • George

    I just wanted to drop in and provide testimony to the excellent web design services you g...

Latest Articles