Solved

Help connecting MySql Workbench

Posted on 2011-03-14
4
1,510 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
ID: 35133328
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
ID: 35136364
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
ID: 35145179
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
ID: 35147655
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

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction In this article, I will by showing a nice little trick for MySQL similar to that of my previous EE Article for SQLite (http://www.sqlite.org/), A SQLite Tidbit: Quick Numbers Table Generation (http://www.experts-exchange.com/A_3570.htm…
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 …
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

786 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