Home  >  Article  >  Backend Development  >  phpmyadmin cannot log in

phpmyadmin cannot log in

王林
王林Original
2019-10-17 17:24:146651browse

phpmyadmin cannot log in

Problem:

When logging in to phpmyadmin, I cannot log in. It prompts #2002 Unable to log in to the MySQL server.

Cause:

The port number of mysql has changed.

Solution:

1. Enter the config.default.php file in phpmyadmin

2. Modify the following configuration and change the port number to Consistent with the port number of mysql

$cfg['Servers'][$i]['port'] = '3307';

3. Save the file and log in to phpmyadmin again

Recommended tutorial: PHP video tutorial

The above is the detailed content of phpmyadmin cannot log in. For more information, please follow other related articles on the PHP Chinese website!

Statement:
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