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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...