Environment: centos6.5,apache2.4, PHP5.5, MySql5.6.
phpMyAdmin version: Https://files.phpmyadmin.net/phpMyAdmin/4.4.11/phpMyAdmin-4.4.11-english.zip
Download it directly to the Web site root directory and configure it as follows:
$cfg [' Servers '] [$i] [' user '] = ' root '; $cfg [' Servers '] [$i] [' password '] = ' root ';
Then save, open http://localhost/phpMyAdmin
There was a warning that the mysqli extension could not be found, and then the PDO and MySQL extensions were installed
Yum Install php-pdo php-mysqli
The warning message did not appear again, but the "cannot log in to the MySQL server" was found for a long time and the solution found was lengthy, but none of them was the final answer to the question.
Finally, finally found a only a few lines of the post, text level but the key in the sentence, the final problem solved, as follows:
Because the TCP mode is closed in/etc/my.cnf, but there is no change phpmyadmin config.inc.php file inside
$cfg [' Servers '] [$i] [' socket '] = '/tmp/mysql.sock '; $cfg [' Servers '] [$i] [' connect_type '] = ' socket ';
and confirm whether the Mysqld.sock file exists in/TMP and if it does not exist, locate the location where the file exists to create a soft connection
At this point, the problem is resolved.
phpMyAdmin appears unable to find MySQL extension and cannot log in to the MySQL server issue