I am setting up PHP and MySQL (Maria DB) on Windows 8.1. I edited the php.ini file and uncommented the following lines:
extension=php_mysql.dll
extension=php_mysqli.dll
extension=php_pdo_mysql.dll
But unfortunately, I can’t connect to the database, because there are no pdo drivers in the output of phpinfo. Therefore, when I try to establish a connection to the database, an exception is thrown:
Fatal error: Uncaught exception 'PDOException' with message 'could not find driver'
How to solve this problem?
Artem source
share