Monday, May 12, 2008

Windoze, php and mySQL

At PHP5 the windoze installation no longer enables mySQL by default. Here's what you have to do: you need to edit php.ini, adding the following lines:
extension_dir = c:\Program Files\PHP\ext
extension=php_mysql.dll
extension=php_pdo_mysql.dll
Now restart Apache. A simple php page with the phpinfo command should reveal that the mySQL extension is now present.