Jump to content

MySQL Error


kde
 Share

Recommended Posts

Dear..

 

I'am using mandriva 2008.

 

I succesfully install XAMPP v1.6.6 but when i open phpmyadmin, there is some error "#2002 - The server is not responding (or the local MySQL server's socket is not correctly configured)" :(

 

Some body can help me?

 

 

[moved from Software by spinynorman]

Link to comment
Share on other sites

if he can hit the phpmyadmin site and get that error then apache is running. however, the mysql server may not be running, or is running on a port different than what phpmyadmin expects. Since phpmyadmin comes with xampp I would assume the ports are correct and the problem is that mysqld is not running. Check in the Services section of Mandriva Control Center and ensure that mysqld is running. Also be sure that you don't have any firewalls blocking connections to localhost (this should not be happening unless you've modified your firewall).

Edited by tyme
Link to comment
Share on other sites

It is possibly a permissions problem with the mysql server. I have just been through all this and it took me a week to find out I had the wrong permissions on the data directory. As soon as the ownership and group were changed to mysql then all was well. Of course this is only the case if the data directory is not in the default directory. Another possibility is that /etc/my.cnf is not allowing network clients to access the database. If the client is run on localhost then it should be OK. Try to access the database from a shell with

 [somebody@somewhere]$mysql -u root

If you get the mysql prompt then the server is running correctly. Just enter 'quit' at the mysql prompt.

Error "#2002 is a very obscure output and basically means the data directory is not accessible for whatever reason.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...