Mysql – Unable to connect to a local MYSQL server on wireles LAN

connectionlocal-area-networkMySQLwifi

Ok, Here is the technical description.
My laptop's config:
Ip Adress:192.168.2.5
Mysqlserver 5.0 on port : 3306
Operating system: Ubuntu jaunty (9.04)
3306 is open for both incoming and outgoing.

My friend's laptop config:
Ip Adress:192.168.2.4
Mysqlserver 5.0 on port : 3306
Operating system: Windows XP pro
3306 is open for both incoming and outgoing.

Both are on a wireless LAN connected through a belkin router (192.168.2.1)

Both the MYSQL servers have been given the sufficient GRANT privileges. I am also able to connect from 192.168.2.4 to 192.168.2.5's MYSQL instance but the vice versa is not happening. I am getting an (100061) error. Tried Telnetting on 3306; again happening from 192.168.2.4 to 192.168.2.5 but not the vice versa. Am I doing something wrong?
Kindly suggest.

Best Answer

most likely Mysql on Jaunty does not listen for external addresses or is not configured to accept connections from external addresses.

Can you telnet 192.168.2.4 3306 port from your Jaunty laptop?

You should check /etc/mysql/my.cnf bind-address variable and make sure to comment it out as well as skip-networking.

#skip-networking
#bind-address 

Or bind address to all network interfaces

bind-address = 0.0.0.0