Code: Select all
extension=php_pdo.dll
extension=php_pdo_mssql.dll
extension=php_pdo_mysql.dllCode: Select all
try
{
$db = new PDO('mysql:host=localhost;dbname=circus_arts_db', 'user', 'pass');
} catch (Exception $e)
{
echo $e->getMessage();
}Solution: For MySQL and MS SQL to be available with PDO you need to copy libmysql.dll and ntwdblib.dll into your <windows root>\system32\ directory. Actually, I'm surprised this is not documented on PDO page.