Xampp: database connection refused - mysql

I'm in the process of making a blog website and I'm using Xampp as my localhost service. When I tried to run my 'login.php" page it showed an error " Access denied for user 'root'#'localhost' (using password: yes)" and then in order to fix that issue I changed my password in phpMyAdmin table and since then it is showing these couple of errors. I tried to edit my "config.inc.php" file too but it hasn't fixed the issue. Please help me out thanks.
Error
MySQL said: Documentation
Cannot connect: invalid settings.
mysqli::real_connect(): (HY000/2002): Connection refused
Connection for controluser as defined in your configuration failed.
mysqli::real_connect(): (HY000/2002): Connection refused
phpMyAdmin tried to connect to the MySQL server, and the server rejected the connection. You should check the host, username and password in your configuration and make sure that they correspond to the information given by the administrator of the MySQL server.

Related

How to solve phpmyadmin errors?

Recently I installed xampp software and where i start apache and mysql server but when i go to localhost/phpmyadmin then i've got some errors and i can't be able to fix those errors.
Error
MySQL said: Documentation
Cannot connect: invalid settings.
mysqli::real_connect(): (HY000/2002): No connection could be made because the target machine actively refused it.
Connection for controluser as defined in your configuration failed.
mysqli::real_connect(): (HY000/2002): No connection could be made because the target machine actively refused it.
phpMyAdmin tried to connect to the MySQL server, and the server rejected the connection. You should check the host, username and password in your configuration and make sure that they correspond to the information given by the administrator of the MySQL server.

How to fix Mysql error "Status change detected: running" in XAMPP localhost

MySQL suddenly not starting from last 2 days in XAMPP localhost
I tried by changing the PORT number and delete the ibdata1 file. but none of these are worked for me. Below is the error showing in PHPmyadmin
MySQL said:
Documentation
Cannot connect: invalid settings.
mysqli_real_connect(): (HY000/2002): No connection could be made because the target machine actively refused it.
Connection for controluser as defined in your configuration failed.
mysqli_real_connect(): (HY000/2002): No connection could be made because the target machine actively refused it.
phpMyAdmin tried to connect to the MySQL server, and the server rejected the connection. You should check the host, username and password in your configuration and make sure that they correspond to the information given by the administrator of the MySQL server.
Error showing in XAMPP:
Status change detected: running
Please help me to resolve this. Thanks in advance for suggestions.

Cannot connect: invalid settings OSX

Im getting this error but i can not find phpmyadmin folder to change config.inc.php. Any suggestion?
Error MySQL said: Documentation
Cannot connect: invalid settings. Connection for controluser as
defined in your configuration failed. phpMyAdmin tried to connect to
the MySQL server, and the server rejected the connection. You should
check the host, username and password in your configuration and make
sure that they correspond to the information given by the
administrator of the MySQL server.

Remote access MySql via remote phpMyAdmin

I have a phpMyAdmin with MySQL on a linux remote machine to which I can connect with no problem with a browser.
But when I am trying to connect a DB in MySQL from a .NET program in my machine, I am getting an error message:
Authentication to host 'theIpNumber' for user 'newUserName' using method 'mysql_native_password' failed with message: Access denied for user 'newUserName'#'myMachineName' (using password: YES)
I tried to configured it like it is explained here: http://www.devside.net/wamp-server/accessing-mysql-or-phpmyadmin-from-outside
creating a new user with password in phpMyAdmin and changing the config.inc.php
Then in my app.config I have the connection string with:
connectionString="server=theIpNumber;UserId=newUserName;Password=newUserPassword;database=theDB"
But I am still getting the same error message when I run my program. Any idea how to solve this?
Finally I solved it adding in phpMyAdmin another user with the same name "newUserName" and password, and with the host value "%"

WAMP 2.0i server

i just installed the WAMP 2.0i server and it seems to be working.
but when i open PhpMyAdmin in the localhost the following error occurs...
"Error
MySQL said:
#1045 - Access denied for user 'root'#'localhost' (using password: YES)
phpMyAdmin tried to connect to the MySQL server, and the server rejected the connection. You should check the host, username and password in your configuration and make sure that they correspond to the information given by the administrator of the MySQL server."
what should i do to fix this?
Your password for user root is not correct.This is what error says.
Check this article.