Open in browser, ERROR: could not find driver

I am trying to upgrade a login page from old procedural MYSql to PDO. When I try to view the page using View->Open in Browser command I get "ERROR: could not find driver". Do I need to install a specific driver for PDO in PhpStorm?

Thanks

3 comments
Comment actions Permalink

Hi there,

PhpStorm does not actually executes your code -- it's all done by actual PHP Interpreter which you configure yourself.

For MySQL PDO support you need to make sure that "php_pdo_mysql" extension is enabled in your php.ini-- you can verify that from phpinfo() output

 

http://www.php.net/manual/en/pdo.setup.php 

http://www.php.net/manual/en/pdo.drivers.php

0
Comment actions Permalink

Thanks for the info, I should be able to track down the problem now I know where it lies.

0

Please sign in to leave a comment.