I have just installed XAMPP on my Windows XP machine, and I get an error saying:
Connection for controluser as defined in your configuration failed.
Before I installed XAMPP, I had a MySQL database installed and it had a password. I changed and put the password in config.inc.php for MySQL, and I got this error:
<?php
if (!empty($_SERVER['HTTPS']) && ('on' == $_SERVER['HTTPS'])) {
$uri = 'https://';
} else {
$uri = 'http://';
}
$uri .= $_SERVER['HTTP_HOST'];
header('Location: '.$uri.'/xampp/');
exit;
?>
When I try to access index.php, it seems like something is wrong with the XAMPP installation. What can I do to fix this problem?
On Ubunbtu.
Ben's message is close but it's not the root password that is the problem, the problem I found was I had created a password for the phpmyadmin database when I installed it. This password is not carried into the installation on ubuntu so the variable $dbpass=''; in the database settings file is empty and not the password you set.
The problem is that PhpMyAdmin control user (usually: pma) password does not match the mysql user: pma (same user) password.
To fix it, 1. Set the password you want for user pma here:
Then go to mysql, login as root, go to: (I used phpmyadmin to go here)
Edit the user: pma
Select "Password" from the function list (left column) and set "your_new_phpmyadmin_pass" on the right column and hit go.
Restart mysql server.
Now the message should disappear.
phpmyadmin
pma
and set the "host" to the hostname or IP address of your web server (if the web server and MySQL are on the same box uselocalhost
), make a note of the password, and grant the new user full control over thephpmyadmin
database. It is recommended that this user does not have access to anything other than this database.sql
.sql
you will find a file calledcreate_tables.sql
. Open it in a text editor.phpmyadmin
database and click on the "SQL" tab.create_tables.sql
into the text box, and run the query.Open the
config.inc.php
file in the phpMyAdmin install directory, and add the following lines (or change the existing settings if they are already there):Save and close the file.
IMPORTANT - PMA loads the config on login, evaluates it and stores it into the session data so the message will not disappear until you do this:
Problem solved.
on ubuntu 18.04 in
etc/phpmyadmin/config.inc.php
comment all the blockOptional: User for advanced features
I had the same issue. In my case Mysql was not started after a reboot. once I started the mysql "service mysql start" everything worked fine.
on ubuntu /etc/phpmyadmin/config-db.php
make sure the password matches your config.inc.php for the control user
also for the blowfish too short error
edit /var/lib/phpmyadmin/blowfish_secret.inc.php and make the key longer