Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've installed MySQL on OSX Lion, however I can't connect to the MySQL server via phpMyAdmin (or Sequel Pro).
I have a domain with 1and1, and created a sub domain ( and created an A record to point to my internet IP (where the server is) and that all works fine.
However when trying to use Sequel Pro to connect to it gives me this error:

MySQL said: Access denied for user 'root'@'' (using password: YES).

Then when I try connecting to via the Internet IP I get this error:

MySQL said: Host '' is not allowed to connect to this MySQL server

After 'Googling' I thought it'd be a GRANT ALL command to resolve the issue, but I ran the following command and still have the problem:


I've port forwarded 3306 (which I've double checked the MySQL server is running on that port) through my router (and the firewall settings in the router) to the server's LAN IP.

I can't think of anything else. Can anyone else help?

share|improve this question
up vote 1 down vote accepted

Your grant statement is wrong. It should be:


Did you issue a "flush privileges;" after the grant statement?

share|improve this answer
Thank you! I saw that flush privileges earlier, and ran it once. But nothing happened. I assume I had an error as you said and display errors was switched off. I switched it on, realised, and changed it. Thank you so much! – Richard Hedges May 18 '12 at 13:23

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.