Solved

Help connecting MySql Workbench

Posted on 2011-03-14
4
1,507 Views
Last Modified: 2012-05-11
Hi I am having trouble connecting to my server.

When I try to connect to the server I get the following error.

---------------------------
MySQL Workbench Error
---------------------------
Cannot Connect to Database Server

Your connection attempt failed for user 'root' from your host to server at IP ADDRESS:3306:

  Access denied for user 'root'@'<number>.range86-144.btcentralplus.com' (using password: YES)



Please:

1 Check that mysql is running on server <IP ADDRESS>

2 Check that mysql is running on port 3306 (note: 3306 is the default, but this can be changed)

3 Check the root has rights to connect to <IP ADDRESS> from your address (mysql rights define what clients can connect to the server and from which machines)

4 Make sure you are both providing a password if needed and using the correct password for <IP ADDRESS> connecting from the host address you're connecting from
---------------------------
OK  
---------------------------

Now the windows firewall service is not running on the server, so it can't be that. The IP user, pass are all correct to.

Any Ideas?

Matt.
0
Comment
Question by:flynny
  • 2
4 Comments
 

Expert Comment

by:pakachele
Comment Utility
there might be 3 situations:
1. network problem, try pinging the ip address seperately
2. confirm that the mysql server is running
3. further there point 3 of the solutions provided might be a cause; often it happens we try to connect from a new machine whose ip address is not in the clients list on the server ...
0
 
LVL 13

Expert Comment

by:dsmile
Comment Utility
You need to access your server that running mysql and run mysql grant from that to allow your ip to access mysql server.

GRANT ALL ON *.* TO 'root'@'<IP ADDRESS>';

Read more about this here http://dev.mysql.com/doc/refman/5.1/en/grant.html
0
 

Author Comment

by:flynny
Comment Utility
hi guys,
dsmile, we are not on a static IP address though? I am able to grant access universally?

is this safe?

thanks for the advice guys.
0
 
LVL 13

Accepted Solution

by:
dsmile earned 500 total points
Comment Utility
Yes, you can grant access universally

mysql> GRANT ALL PRIVILEGES ON *.* TO 'root'@'%'
> IDENTIFIED BY 'password' WITH GRANT OPTION;
mysql> FLUSH PRIVILEGES;
mysql> exit

But, NO, it's NOT safe.

root access should be granted to limited user only (not to say it should be local only).

In my opinion, you should create several accounts with different privileges (less power than root account) and allow them to be accessed universally.
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

As a database administrator, you may need to audit your table(s) to determine whether the data types are optimal for your real-world data needs.  This Article is intended to be a resource for such a task. Preface The other day, I was involved …
Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now