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!