LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-25-2005, 06:12 AM   #1
onesandtwos
LQ Newbie
 
Registered: Oct 2005
Location: North Wales
Distribution: Mandriva LE2005
Posts: 18

Rep: Reputation: 0
Access MySQL through LAN rpoblems


I cannot connect to the MySQL through my LAN which comes back with an error 10060 or 10061. I can connect fine through the actual machine.

I believe this means that the MySQL server cannot be seen at all

I've tried to sort it out but am really struggling to find a solution as i'm still a bit of a n00b.... but at least im trying, right?

Better explain the setup to you a bit better then...

My version of Linux is Mandriva 2005 LE. My Server is on the DMZ port of my router and I want my LAN to be able to connect to the MySQL server. During install I set Shorewall firewall to allow for Web Server and Ping . I can ping the Server from the LAN ok but had to change setting for ICMP_echo_ignore_all (or something like that) to 0 due to the paranoid security setting.

I've added two new rules through webmin to Shorewall to allow my LAN to see the MySQL server... Here are the rules...

HOST xx.xx.xx.xx in Zone NET | firewall | TCP | 3304 | 3304 |
HOST xx.xx.xx.xx in Zone NET | firewall | TCP | 3306 | 3306 |

Please HELP!!

***ADDITIONAL***

Just found that skip-networking was in the my.cnf file so i've pit a # infront of that.... I got my hopes up that it would work but it still doesn't :S grrrrrr

Tried it with Shorewall turned off and still no joy
 
Old 11-25-2005, 06:30 AM   #2
babysparrow
Member
 
Registered: Nov 2005
Location: Worcestershire,UK
Distribution: Used nearly all but now just using Lubuntu 18.04lts and 20.04 lts
Posts: 94

Rep: Reputation: 19
Can you telnet to the mysqlserverhost on port 3306 ?

If not then you have [at least] a network problem.

If you can telnet to it then I assume you are running a mysql client inside your firewall and trying to connect as a valid mysql user. To do this you need to set the access for that user (to allow connections from all hosts) within the mysqldb otherwise access is only allowed for local users.

Personally, I would not put the mysql db in the DMZ.
 
Old 11-25-2005, 06:39 AM   #3
onesandtwos
LQ Newbie
 
Registered: Oct 2005
Location: North Wales
Distribution: Mandriva LE2005
Posts: 18

Original Poster
Rep: Reputation: 0
Thanks for the reply...

feel a bit muppety but when I go in and type SHOW VRIABLES; then skip-networking is on.

I #'d it in my.cnf so why is it on. (Also restarted the server )

Also something I noticed is that ICMP_echo_ignore_all i set to 0 but after a restart its back as 1 sometimes. I wonder why?

Last edited by onesandtwos; 11-25-2005 at 06:42 AM.
 
Old 11-25-2005, 06:47 AM   #4
babysparrow
Member
 
Registered: Nov 2005
Location: Worcestershire,UK
Distribution: Used nearly all but now just using Lubuntu 18.04lts and 20.04 lts
Posts: 94

Rep: Reputation: 19
I'm going to ask a really obvious question :

Is the mysqld actually running ? (on the DMZ server). If it is - I assume you can at least connect to it on there (?)
 
Old 11-25-2005, 07:02 AM   #5
onesandtwos
LQ Newbie
 
Registered: Oct 2005
Location: North Wales
Distribution: Mandriva LE2005
Posts: 18

Original Poster
Rep: Reputation: 0
Thanks for the help


lol... yes I can do it from mysql.... I got the skip-networking off as well... hooray...

You wouldn't put the sql server on the DMZ? Is this because its showing it to the outside world?


now I get an error when connecting 'xx.xx.xx.xx' is not allowed to connect to thisMySQL server...


(sigh)
 
Old 11-25-2005, 07:17 AM   #6
babysparrow
Member
 
Registered: Nov 2005
Location: Worcestershire,UK
Distribution: Used nearly all but now just using Lubuntu 18.04lts and 20.04 lts
Posts: 94

Rep: Reputation: 19
Yes I wouldn't want it showing to the www.

The "is not allowed to connect" is caused by the fact that you try to log in from another server - as I noted in post #2.

It's a while since I've fiddled with it, but it'll be in here somewhere >> http://dev.mysql.com/doc/refman/5.0/...ss-denied.html
 
Old 11-25-2005, 07:27 AM   #7
onesandtwos
LQ Newbie
 
Registered: Oct 2005
Location: North Wales
Distribution: Mandriva LE2005
Posts: 18

Original Poster
Rep: Reputation: 0
Thanks very much... This seems easier to solve than not being able to see the server at all... i'll give it a good crack...
 
  


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
No access outside of LAN Dag Linux - Networking 0 10-29-2005 10:56 PM
How access MySQL by MySQL Administrator? treotan Linux - Newbie 5 12-04-2004 10:17 PM
mysql on lan Dasc Debian 6 08-22-2004 11:40 AM
Can't access my school's LAN iluvpublix Linux - Networking 4 09-19-2003 11:24 AM
How can I get access to a computer on my LAN? teeno Linux - Networking 5 07-17-2001 07:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:54 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