thinkPHP given database connection: PDOException in Connection.php line 295

Go online to find a way to try more than N, reloading apache, mysql. Install integrated software have been tried. The same error.

Later careful analysis, PDOException in Connection refers to abnormal PDO is not it?

Then to understand the knowledge of some of the PDO, we found the cause of the problem.

Then quietly go find the php.ini

extension=php_pdo.dll
extension=php_pdo_sqlite.dll

Removing the semicolon in front of these two;

These are these two php7.0

extension=pdo
extension=pdo_mysql

Then restart apache ok get.

Guess you like

Origin www.cnblogs.com/xzychoose/p/10974385.html
Recommended