How to solve “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.” problem?

When we try to access PHPMyAdmin from xampp on linux we might get the following errors
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.

OR
Wrong permissions on configuration file, should not be world writable!

This is caused due to control is set to 777 for the configuration files
1. /opt/lampp/etc/my.cnf
2. /opt/lampp/phpmyadmin/config.inc.php

So we need to change its permission by running following script in terminal
1. sudo chmod 705 /opt/lampp/phpmyadmin/config.inc.php
2. sudo chmod 705 /opt/lampp/etc/my.cnf

I have config.inc.php file in /opt/lampp/phpmyadmin, please set path according to your installation location. Same for my.cnf file.

It works fine!!.

If still you are having any problems. Please let me know.

You may also like...

19 Responses

  1. princess says:

    It is not working…. I am still getting the error message

  2. geetanjali says:

    no,i am still getting the problem

  3. admin says:

    @geetanjali: Did u solved it now?

  4. nirav ( india) says:

    hi i m nirav from india a software developer.
    thanks its really working i know this error is about permission but which i didnt get i have used many but this 705 its realy working thanks a lot……tc

  5. admin says:

    @nirav: welcome brother…

  6. shaan says:

    getting same error in windows 7..its not working here

  7. Ratnesh says:

    it worked. Thank a lot

  8. daljeet singh says:

    thank you very much

  9. varun says:

    cool !! It works fine !! Thanks a lot !!!

  10. kevin says:

    you are sooo great…..

  11. Anderson says:

    Thanks so much, it worked for me

  12. After this i am still facing “Error

    MySQL said: Documentation
    #2002 – The server is not responding (or the local MySQL server’s socket is not correctly configured) ” Please provide me a possible solution for the same ASAP. I am using Fedora 14. This problem is very common & too much in my office. Still i didn’t get a permanent solution for this problem…

  13. amol says:

    How to solve “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.” problem?

    i have same problem in Xampp

  14. ela says:

    Error in Phpmyadmin

    You probably did not create a configuration file. You might want to use the setup script to create one.
    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.

  15. I am facing similar problem of “#2002 Cannot log in to the MySQL server – Connection for controluser as defined in your configuration failed.” on a win 7 Machine with Wamp and Xamp both running on it. I tried all the solutions I found on net but it didn’t work.

    Can somebody help me to resolve this issue?

  16. Yemi Kudaisi says:

    On my ubuntu i simple backed up my htdocs folder and deleted the entire lampp folder after which i reinstalled xampp and the problem was solved.

  17. Pea says:

    That worked for me. Thanks!!!

  18. buddha says:

    Error MySQL said: Documentation #2002 – The server is not responding

  1. August 18, 2012

    […] How to solve “Error MySQL said: Documentation #2002 – The server is not responding (or the local… […]

Leave a Reply

Your email address will not be published. Required fields are marked *

*