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 (server.domain.com) 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 server.domain.com it gives me this error:
MySQL said: Access denied for user 'root'@'server.echobarrier.com' (using password: YES).
Then when I try connecting to via the Internet IP I get this error:
MySQL said: Host '192.168.0.1' 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:
GRANT ALL PRIVILEGES ON *.* TO root@'%' IDENTIFIED BY 'password'
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?
Your grant statement is wrong. It should be:
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'password';
Did you issue a “flush privileges;” after the grant statement?
- Resetting root password for MySQL problems (Mac OS X Lion)
- Can’t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock’ (2)
- Forwarding port 3306 on Mac OS X in order to connect to a remote MySQL Database
- other computer in the network cannot connect to mysql database
- Unauthorised to connect to MYSQL server running in VM
Leave a comment
- Is there a way for administrators to disable users from installing Firefox extensions?
- Is there research material on NTP accuracy available?
- How to create a limited “domain admin” that does not have access to domain controllers?
- Can Windows RDC admin users be immune from being kicked?
- Domain Administrators account policy (After PCI audit)