Yii Error: CDbConnection failed to open the DB connection: could not find driver


yii framework

Error:

CDbConnection failed to open the DB connection: could not find driver

C:\xampp72\htdocs\DEV\project\protected\models\SystemConfiguration.php(50)

Solution: In php.ini, enable the configurations according to the base used:

extension=mbstring
extension=exif ; Must be after mbstring as it depends on it
extension=mysqli
;extension=oci8_12c ; Use with Oracle Database 12c Instant Client
;extension=odbc
;extension=openssl
;extension=pdo_firebird
extension=pdo_mysql
;extension=pdo_oci
;extension=pdo_odbc
extension=pdo_pgsql
extension=pdo_sqlite
extension=pgsql
;extension=shmop


Moeda Tipo Valor
Dollar Compra R$ 5,97
Dollar Venda R$ 5,97
Data 22/01/2025

January 2025
S M T W T F S
 1234
567891011
12131415161718
19202122232425
262728293031