Link to home
Start Free TrialLog in
Avatar of ClintonK
ClintonKFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Cannot connect to MySQL on remote server

I have a virtual server running Ubuntu 14.04 and MySQL. The server is a new build specifically to test this connectivity. I have installed MySQL Workbench 6.1 CE on my Windows 7 64bit Pro desktop. Both the PC and the Ubuntu server are on the same network.
The Ubuntu server is on and my PC is on
When I try to connect to MySQL using the Workbench with username "root" and password <mypassword> and then "Test Connection" I get error "Failed to connect to MySQL at with user root"
I have tried running the following on the MySQL server but still it won't connect.
GRANT ALL ON *.* to 'root'@'%' IDENTIFIED BY 'mypassword';    

No firewall is running on the PC or the Ubuntu server
Avatar of Ruel Tmeizeh
Ruel Tmeizeh

Link to home
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ClintonK


You were exactly right! Editing the file has cured the problem. (it took me a while to test because I'd managed to lock myself out of root access to MySQL so had to sort that first :-/ )
Thanks, I've spent many hours surfing for the solution and never even got close to that one.
Avatar of Ruel Tmeizeh
Ruel Tmeizeh

Great! Glad to hear that fixed it.
God bless.