Home >Database >Mysql Tutorial >Why Can't I Connect to phpMyAdmin After Setting the Root Password in XAMPP?

Why Can't I Connect to phpMyAdmin After Setting the Root Password in XAMPP?

Linda Hamilton
Linda HamiltonOriginal
2024-11-20 03:48:02599browse

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!

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