When yii was used today, a connection error occurred to the database and the couldnotfinddriver error was reported. it turns out that the php_pdo_mysql module of the database was not opened because yii operated data with pdo, so it is necessary to open the php_pdo_mysql module; the solution is as follows:
When yii was used today, an error occurred while connecting to the database and the cocould not find driver error was reported. it turns out that the php_pdo_mysql module of the database was not opened because yii operated data with pdo, to enable the php_pdo_mysql module, follow these steps: (from the network)
This error is reported when you debug a PHP program in windows. cocould not find driver
I used the PDO object in this program to connect to mysql 5. in the default settings of PHP, only the php_pdo module is enabled, and the php_pdo_mysql module is not enabled. therefore, the driver cannot be found. open this module and restart apache. of course, if you use another database, you can open the corresponding module.
Extension = php_pdo_mysql