After a few searches, I am still trying to get my server back to life. Windows has uninvitedly decided to restart my machine. All the things I was working on gone, and my server has some trouble.

- commandline acces to mysql shows that mysql is running and still has all my databases- php admin is unavailable: * #2002 - The server is not responding (or the local MySQL server's socket is not correctly configured)

- When trying to run a script, I get an error on the mysql_connect: * Warning: mysql_connect() [function.mysql-connect]: [2002] An attempt was made to access a socket in a way forbidden by its (trying to connect via tcp://localhost:3306) in [..cut..]

What could this be? It was a fully working installation, which I have been using for weeks without issues. Xampp 1.7.4, control panel 2.5

There is just a chance that you have more my.ini files other than the one in the \xampp\mysql\bin folder - do a search of your PC and if you find any that are not in the folder mentioned then either rename them or delete them and then try again after restarting MySQL.

I am not convinced it is in the .ini files though; The whole thing worked fine, untill windows last night decided to do something while I was away: I cam back to my machine and it had rebooted and I could not acces anything. If I check the mysql_error.log for the startup, this is what I get:

Not checked every word but they look very similar indeed and I have no db issues.

In your XAMPP Control Panel if there is a tick in the Svc box then remove it then after answering the question positively try and Start MySQL again.

If MySQL is already started after your sudden restart by the OS using the Windows Service then this may be the issue and it is not being seen as started by phpMyAdmin so first uninstall the MySQL Windows service either by the above Svc tick method or run the uninstall service bat file in the mysql folder. You can check it has gone by clicking on the SCM button in the control panel and look for the mysql service.

Next you can copy from C:\xampp_old your web site files.Then go to the C:\xampp_old\mysql\data folder and copy and overwrite the contents to your C:\xampp equivalent folder which should now contain your databases and the system databases from your C:\xampp installation - nothing is lost.(you do remember your root password though?)

Restart MySQL and then try and access phpMyAdmin using the root user/pass combo.

(As I feared.. Not a Xampp issue: After doing all this, when I run the localhost and try to access phpadmin... Exactly the same error. Feels like windows has adjusted some settings that is refusing me a connection or something?

Error

MySQL said: Documentation#2002 - The server is not responding (or the local MySQL server's socket is not correctly configured)Connection for controluser as defined in your configuration failed.

Hi, thanks for your continued help. Unfortunately, this does not imrpove the sidtuation; I actually also tried this before replacing the xampp install. I have done so now as well, and phpadmin now asks for a username / pass. After entering the info this results in: