LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-03-2006, 05:57 AM   #1
james.reid
LQ Newbie
 
Registered: Jan 2006
Posts: 8

Rep: Reputation: 0
MySQL 4.1 remote access (Fedora Core 4)


Hi Everyone,

I am running Fedora Core 4 with MySQL 4.1.5

I am trying to connect to MySQL from a remote server and am having problems.

Specifically:
If try to > telnet x.x.x.x 3306
I get a "M#HY000Host 'y.y.y.y' is not allowed to connect to this MySQL server Connection closed by foreign host." error.

I can succesfully > telnet localhost 3306 < from the localhost
and I can succesfully > telnet x.x.x.x 3306 < from the localhost

I have checked that I do not have anything like a --skip_networking statement anywhere, and would assume that since it is MySQL that is actually refusing the connection that my firewall is working correctly

I do not believe that the problem is caused by incorrect user permissions as I never get asked to login - I get rejected as soon as I attempt to connect to the server.

Any assistance would be much appreciated.

Regards,
James.
 
Old 01-03-2006, 06:33 AM   #2
jimvin
Member
 
Registered: May 2004
Posts: 71

Rep: Reputation: 15
Hi,
MySQL can be configured to restrict remote access by IP address as well as username. user@localhost is not the same as user@<some-other-ip-addr>.

Details are in the MySQL manual at:
http://dev.mysql.com/doc/refman/4.1/...on-access.html

Regards,
Jimvin
 
Old 01-04-2006, 02:38 AM   #3
james.reid
LQ Newbie
 
Registered: Jan 2006
Posts: 8

Original Poster
Rep: Reputation: 0
Hi,

Thanks for your help - problem is now solved.

What I have discovered is that:

1. At the very least, one MySQL user must have rights to log into the MySQL server from the remote client before the MySQL server will let anyone attempt to login from the remote client.

2. It is important to use the SQL "Grant..." command to provide the MySQL user with the right to login from the remote host. Simply changing the host field of an existing user to the name of the remote client is not sufficient.

Regards,
James.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
MySQL 4.1 remote access (Fedora Core 4) james.reid Linux - Software 1 01-04-2006 04:13 PM
MySQL 4.1 remote access james.reid Linux - Software 0 01-03-2006 05:55 AM
can't get remote access to mysql server hughes28105 SUSE / openSUSE 6 09-17-2005 09:07 PM
Fedora Core 3, MySql Server, mysql started mysql ended OkiTek Fedora 30 01-28-2005 09:15 AM
MySQL remote access from Dynamic IP Address via phpMyAdmin Swene Linux - Networking 1 05-21-2002 06:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:38 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration