D
D
devilsD2019-04-16 14:26:02
linux
devilsD, 2019-04-16 14:26:02

How to fix CDbConnection failed to open the DB connection: could not find driver error on php.5.6 in ubuntu 18?

I'm trying to get yii1. ubuntu has php 7.2 installed. Apache webserver
installed 5.6 and switched:

sudo a2dismod php7.2 ; sudo a2enmod php5.6 ; sudo service apache2 restart
sudo update-alternatives --set php /usr/bin/php5.6

phpinfo outputs
PDO drivers mysql

But the page throws an error:
CDbConnection failed to open the DB connection: could not find driver

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question