phpMyAdmin appears unable to find MySQL extension and cannot log in to the MySQL server issue

Source: Internet
Author: User
Tags phpmyadmin

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.