When phpMyAdmim and Yii are connected to Mysql, an error is returned.
Faults:
Before phpMyAdmim and Yii connected to Mysql, one day, the following error was reported:
1. "The mysqli extension is missing in phpMyAdmin in linux. Check the PHP configuration ."
2. Yii shows CDbConnection failed to open the DB connection: cocould not find driver
Troubleshooting:
1. Check whether the Mysql service is normal (login or port)
2. the Mysql service is normal. It is estimated that PHP lacks mysql-related extensions because there are problems with both phpMyAdmim and Yii.
Cause:
The extension mysqli is not installed, or you have not added extension = mysqli. d to php. ini.
Solution:
1. yum list | grep php-mysql check whether php-mysql is installed
2. install php-mysql, yum-y install php-mysql
3. Add extension = mysqli. d to the PHP configuration file php. ini.
4. Restart Apache.