Home > Database > Mysql Tutorial > body text

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

Linda Hamilton
Release: 2024-11-20 03:48:02
Original
536 people have browsed it

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'] = '';
Copy after login

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!

source:php.cn
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
Latest Articles by Author
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template