?
Solved

can't connect to remote database

Posted on 2007-04-07
6
Medium Priority
?
580 Views
Last Modified: 2008-02-01
Hi

I'm having trouble connecting to a mysql database remotely.

I'm accessing a mysql version 4.11 database using the query browser. For the host I am entering the ip address, and then entering the root username and password.

I get this error:

MySQL error number 1130 #HYOOOHost 'andieje.plus.com'  is not allowed to connect to this mysql server

I've looked this error up on the internet and most places say it is a permissions issue. However I'm confused because I am trying to login as 'root' but the error message says I have a host name of 'andieje.plus.com' How do i connect as root?

thanks
amdrea
0
Comment
Question by:andieje
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 16

Expert Comment

by:AdamRobinson
ID: 18870634
It's actually saying your MySQL is only allowing connections from your domain, likely meaning it only allows connection from Localhost.  You'll want to check your config and make sure it's allowing connections from remote domains.

0
 
LVL 51

Expert Comment

by:Steve Bink
ID: 18872507
To clarify a little bit, the server is saying that a user at host 'andieje.plus.com' is not allowed to connect.  This is a permissions problem, but you need to log to the server using an account with admin permissions.  When you say you are using a 'query browser', exactly what program are you using?

I recommend you try to login from the server's cli.  That should get you pointed in the right direction:

# mysql -u <username> -p

Otherwise, you can try a great MySQL client app:

www.sqlmanager.net
0
 
LVL 16

Expert Comment

by:AdamRobinson
ID: 18872953
routinet,

I've also seen, though I wish I had noted what version, an issue where MySQL will not allow a connection from root from outside no matter what.  This may indeed be default now, but I recall the last time I did an install (which was quite a while ago), I ran into that, and found it in the notes.  It could be he is running into this too.  Either way, your comment seems to be dead on for him.
0
Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

 
LVL 12

Accepted Solution

by:
str_kani earned 2000 total points
ID: 18872979
http://www.experts-exchange.com/Database/MySQL/Q_21579987.html
1)By default mysql does not support remote access...

2) you will have to specify this in the server first, (ofcourse you will not be able to do this from a remote machine!!! unless you have remote desktop access)

3)To enable access from a client machine called nile, do the following after starting mysqld (or mysqld_safe) on the server, named delaware:

% mysql -u root -p
mysql> use mysql;
mysql> grant all privileges on *.* to usrname1@'%'
identified by 'test' with grant option;
mysql> insert into host values('nile', '%', 'Y', 'Y', 'Y', 'Y', 'Y',
'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y');
mysql> exit


Hope this helps you!

The user name, usrname1, and the password, test, should be replaced by the real value.
One can then run mysql on nile as follows:

  % mysql --host=delaware --user=usrname1 -ptest

To restrict access to a user from a specific host, change '%' in the grant command to a valid hostname or ip address.

You can also refer this.

http://www.linuxhelp.net/guides/mysql/

0
 
LVL 51

Expert Comment

by:Steve Bink
ID: 18873543
@AdamRobinson:  MySQL is installed by default with only specific access to the admin account, IIRC.  

str_kani has some good tips for you.  I think you could use a good guide for how to progress.  This would be an outstanding starting place for you:

http://dev.mysql.com/doc/refman/4.1/en/post-installation.html
0
 

Author Comment

by:andieje
ID: 18879309
thanks a lot
0

Featured Post

Learn how to optimize MySQL for your business need

With the increasing importance of apps & networks in both business & personal interconnections, perfor. has become one of the key metrics of successful communication. This ebook is a hands-on business-case-driven guide to understanding MySQL query parameter tuning & database perf

Question has a verified solution.

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

In this article, we’ll look at how to deploy ProxySQL.
In this article, I’ll talk about multi-threaded slave statistics printed in MySQL error log file.
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

770 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