Home > Database > phpMyAdmin > body text

phpMyadmin installation errors and their solutions

藏色散人
Release: 2021-06-27 17:37:24
forward
3814 people have browsed it

This article explains phpMyadmin installation errors and solutions.

1. Download and installation:

https://files.phpmyadmin.net/phpMyAdmin/4.7.1/phpMyAdmin-4.7.1-all-languages.zip
Copy after login

Just copy all the files in the phpmyadmin directory to the site directory

Description: Enable the mysqli module

Problem 1:

2002 Unable to log in to the MySQL server

phpMyAdmin cannot log in. After entering the user name and password and clicking "Execute", it keeps reporting "#2002 Unable to log in to the MySQL server".

Solution, change

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

in the config.default.php file under the "phpMyAdmin/libraries" folder to

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

Question 2:

#1045 Unable to log in to the MySQL service

1. Modify the /phpmyadmin/libraries/config.default.PHP file.

Find the following two lines

$cfg['Servers'][$i]['nopassword'] = false;
$cfg['Servers'][$i]['AllowNoPassword'] = false;
Copy after login

Modify to:

$cfg['Servers'][$i]['nopassword'] = true;
$cfg['Servers'][$i]['AllowNoPassword'] = true;
Copy after login

2. If you still cannot log in at this time, try clearing cookies. Or just enter a few characters.

3. Change the password promptly after successful login.

The above is the detailed content of phpMyadmin installation errors and their solutions. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:csdn.net
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