Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

i am working on windows 7 ..i am using xampp . i restarted my computer then after that when open the mysql yog..then it gives me an error

error no 2003
   can't connect to mysql server on localhost (10061)

then i want to open php my admin this error comes up

    2002 - The server is not responding (or the local MySQL server's socket is not       correctly configured

after that i checked my log file which is showing this

Can't open and lock privilege tables: Table 'mysql.host' doesn't exist

please help me how can i run my sql .. if you cantt give me solutions then atleast tell where can i find my databases.sql files so i can save it before reinstalling

share|improve this question
add comment

migrated from stackoverflow.com Jan 15 '13 at 10:34

This question came from our site for professional and enthusiast programmers.

2 Answers

Run the XAMPP control panel and see the status of MYSQL. Just make sure it is running.

share|improve this answer
add comment

Open config.ini of MySQL and specific path of socket connected between client and server. Figure out

port        = 3306
socket      = path_you_write_socket/tmp/mysql.sock
share|improve this answer
    
Can you add more explanation as to why this is a solution. –  ChrisF Feb 17 '13 at 10:15
    
Sorry, Config.ini as mean my.ini. You can see more detail at link. Sock extension means socket file connection between Server(Mysqld demon) and Client mysql(Mysql demon). –  R.Chatsiri Feb 17 '13 at 12:34
    
If you could summarise the contents of the link here (use the "edit" link) that would be even better. –  ChrisF Feb 17 '13 at 12:35
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.