i\'m having issues connecting to my database on a web host that I have, i\'m using the following:
$dsn = \'mysql:host=mysql1.hosting.digiweb.ie;dbname=mydbna
go to your php.ini file and uncomment this line
extension=php_pdo_mysql.dll
and then restart your apache
Change your extension dir to be absolute in php.ini. I changed it from
extension_dir = "ext"
to
extension_dir = "C:/{PATH TO PHP DIRECTORY}/ext"
and it worked.