Home >Database >Mysql Tutorial >Why Can't I Connect to phpMyAdmin After Setting the Root Password in XAMPP?
Can't Connect to phpMyAdmin After Setting Root Password in XAMPP
Problem:
You've configured a root password for MySQL through phpMyAdmin, but now you're facing connection errors when trying to access phpMyAdmin. The error message you receive states: "Cannot connect: invalid settings."
Solution:
To resolve the issue, navigate to the phpMyAdmin directory within your XAMPP installation folder. Locate the config.inc.php file.
Inside config.inc.php:
Find the following line:
$cfg['Servers'][$i]['password'] = '';
Make sure this line contains your root password for MySQL. It should be populated with the password you set earlier.
The above is the detailed content of Why Can't I Connect to phpMyAdmin After Setting the Root Password in XAMPP?. For more information, please follow other related articles on the PHP Chinese website!