I have been so stupid to hit go at the bottom after I added a new user, deleting all users including root. I have re-installed xampp twice, tried to change the password via the xampp security, still with no success. xAmpp loads perfect on http://localhost, phpMyAdmin though shows the following error -

MySQL said:

#1130 - Host 'localhost' is not allowed to connect to this MySQL server
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.

I found a few similar posts, no one that helped me in getting to log in to MySql again.

I am running as administrator on win xp sp3, xampp shows all services running etc.

I have in the mean time tried to reset the password by using command prompt and editing the resetroot.batch file in the mysql folder. Still the problem persist.

Is there any way to delete the entire root for mysql and re-installing xampp? I don't mind what databases exist, they are all for testing anyway. I just need to get back as the super user 'root'.

Any ideas?

6 Years
Discussion Span
Last Post by WebStudio

You can delete all your mysql data by deleting the "data" directory in \xampp\mysql (at least that's the path in my installation). The access restrictions are stored in a database named mysql, so when you delete and re-install it you should be back on square 1.
This has nothing to do with any windows administrator privileges - mysql maintains its completely independent access restriction system.

Votes + Comments
Thanks, but I got this solved...

I did that, uninstalled xampp, made sure that mysql is completely deleted as well as the xampp folder. I then re-installed the entire app, apache, xampp and mysql using xampp. I still can't get in.

It seems that the mysql root folder stays intact. Any way to delete that?


I have managed to solve this!!!!

For future readers, if you are running Skype, open the connections configurations and de-select the check box that wants to share port 80.

Also make sure that port 80 is added to your firewall or that your anti virus is allowing the listening on port 80.

Now I can work again.;)

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.