Home > Database > phpMyAdmin > What should I do if phpMyAdmin cannot connect to MySQL?

What should I do if phpMyAdmin cannot connect to MySQL?

angryTom
Release: 2020-03-14 10:51:52
Original
4579 people have browsed it

What should I do if phpMyAdmin cannot connect to MySQL?

What should I do if phpMyAdmin cannot connect to MySQL

What should I do if phpMyAdmin cannot connect to MySQL?

##Solution:

1. First, we enter the phpmyadmin directory and see if there is a configuration file config.inc.php. If not, copy and rename config.sample.inc.php to config.inc.php;

2. Then open the configuration file, search for localhost, and find $cfg['Servers'][$i]['host'] = 'localhost;

3. Change localhost to 127.0.0.1;

$cfg['Servers'][$i]['host'] = 'localhost';
Copy after login

was modified to:

$cfg['Servers'][$i]['host'] = '127.0.0.1';
Copy after login

PHP Chinese website, a large number of

MySQL video tutorials, welcome to learn!

The above is the detailed content of What should I do if phpMyAdmin cannot connect to MySQL?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template