Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 19th August 2011, 12:56 AM
mlocicero88 Offline
Registered User
 
Join Date: May 2011
Posts: 16
windows_7ie
MySQL Connection over LAN problem

Hello,

I have a fedora 14 box and a windows box running on the same LAN. I can not connect to mysql from my windows box using the workbench GUI...

Here is what happens :

When I try to telnet my fedora box I get this :

SSH-2.0-OpenSSH_5.5
quirt
Protocol mismatch.


Connection to host lost.

C:\Users\Michael>telnet 192.168.1.2 3306
Connecting To 192.168.1.2...Could not open connection to the host, on port 3306:
Connect failed

C:\Users\Michael>^]^[
'↔←' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\Michael>telnet 192.168.1.2 2329
Connecting To 192.168.1.2...Could not open connection to the host, on port 2329:
Connect failed

C:\Users\Michael>telnet 192.168.1.2 0
Connecting To 192.168.1.2...Could not open connection to the host, on port 0: Co
nnect failed

C:\Users\Michael>ipconfig

C:\Users\Michael>telnet 192.168.1.2 3306
Connecting To 192.168.1.2...Could not open connection to the host, on port 3306:
Connect failed

This leads me to believe there is no server running at port 3306(I can Ping the box fine though). Here is some information from my fedora box.

[root@localhost etc]# netstat -l | grep mysql
tcp 0 0 *:mysql *:* LISTEN
unix 2 [ ACC ] STREAM LISTENING 13101 /var/lib/mysql/mysql.sock

[root@localhost etc]# vi /etc/my.cnf
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
user=mysql
bind-address=0.0.0.0
# Disabling symbolic-links is recommended to prevent assorted security risks
symbolic-links=0

[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid

root@localhost etc]# service iptables status
Table: filter
Chain INPUT (policy ACCEPT)
num target prot opt source destination
1 ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:13101
2 ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:25
3 ACCEPT all -- 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED
4 ACCEPT icmp -- 0.0.0.0/0 0.0.0.0/0
5 ACCEPT all -- 0.0.0.0/0 0.0.0.0/0
6 ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 state NEW tcp dpt:22
7 REJECT all -- 0.0.0.0/0 0.0.0.0/0 reject-with icmp-host-prohibited
8 ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:3306
9 ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:3306

Chain FORWARD (policy ACCEPT)
num target prot opt source destination
1 REJECT all -- 0.0.0.0/0 0.0.0.0/0 reject-with icmp-host-prohibited

Chain OUTPUT (policy ACCEPT)
num target prot opt source destination



Please let me know if anyone has an idea what the problem is... it is driving me nuts

THANKS!
Reply With Quote
  #2  
Old 19th August 2011, 08:55 AM
markkuk Offline
Registered User
 
Join Date: Apr 2005
Location: Finland
Posts: 5,076
linuxfirefox
Re: MySQL Connection over LAN problem

Quote:
Originally Posted by mlocicero88 View Post
Code:
root@localhost etc]# service iptables status
Table: filter
Chain INPUT (policy ACCEPT)
num  target     prot opt source               destination
1    ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           tcp dpt:13101
2    ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           tcp dpt:25
3    ACCEPT     all  --  0.0.0.0/0            0.0.0.0/0           state RELATED,ESTABLISHED
4    ACCEPT     icmp --  0.0.0.0/0            0.0.0.0/0
5    ACCEPT     all  --  0.0.0.0/0            0.0.0.0/0
6    ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           state NEW tcp dpt:22
7    REJECT     all  --  0.0.0.0/0            0.0.0.0/0           reject-with icmp-host-prohibited
8    ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           tcp dpt:3306
9    ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           tcp dpt:3306
Please let me know if anyone has an idea what the problem is.
Iptables rules are applied in order. The rules that are supposed to accept connections to the MySQL port are after the REJECT rule, so they aren't ever reached.
Use system-config-firewall or some other firewall configuration GUI to set up your rule set.
Reply With Quote
  #3  
Old 20th August 2011, 03:15 AM
mlocicero88 Offline
Registered User
 
Join Date: May 2011
Posts: 16
windows_7ie
Re: MySQL Connection over LAN problem

That was it, thank you very much!!
Reply With Quote
Reply

Tags
connection, lan, mysql, problem

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
mysql-connection problem prudhviy Servers & Networking 1 27th September 2007 06:36 PM
FC4, Tomcat5, MySql and connection problem.... Kalimdor Using Fedora 2 19th July 2006 09:45 AM


Current GMT-time: 09:47 (Saturday, 18-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat