MySql on LAN

Re: MySql on LAN

Postby ADutheil » Wed Aug 29, 2012 1:54 am

The right way is to config your router first. You should modify its DHCP server to reserve some addresses for fixed IPs. There is a great probability your router is configured to a network like 192.168.0.1/24 and the DHCP server range from 192.168.0.2 to 192.168.0.254. Change that range from 192.168.0.10 to 192.168.0.254 and set your server IP to 192.168.0.2. You´ll still have 192.168.0.3 to 192.168.0.9 in case you need other static IPs.
As for the firewall you can access it from the windows control panel of the server. You just need to add a rule to the port 3306/TCP. I never used MySQL with a windows server but with a linux server you have to edit the my.cnf file and comment out the skip-networking line to allow TCP connections from another host.
Regards,

André Dutheil
FWH 13.04 + HB 3.2 + MSVS 10
ADutheil
 
Posts: 368
Joined: Sun May 31, 2009 6:25 pm
Location: Salvador - Bahia - Brazil

Re: MySql on LAN

Postby mosh1 » Wed Aug 29, 2012 3:32 am

ADutheil wrote:The right way is to config your router first. You should modify its DHCP server to reserve some addresses for fixed IPs. There is a great probability your router is configured to a network like 192.168.0.1/24 and the DHCP server range from 192.168.0.2 to 192.168.0.254. Change that range from 192.168.0.10 to 192.168.0.254 and set your server IP to 192.168.0.2. You´ll still have 192.168.0.3 to 192.168.0.9 in case you need other static IPs.

Where do I change this range?

As for the firewall you can access it from the windows control panel of the server. You just need to add a rule to the port 3306/TCP.

Already did it before. Wire connection now works.

I never used MySQL with a windows server but with a linux server you have to edit the my.cnf file and comment out the skip-networking line to allow TCP connections from another host.

TCP connections work, problem is the wireless.
mosh1
 
Posts: 129
Joined: Sun Oct 09, 2011 3:50 pm

Re: MySql on LAN

Postby ADutheil » Wed Aug 29, 2012 12:09 pm

mosh1 wrote:
ADutheil wrote:The right way is to config your router first. You should modify its DHCP server to reserve some addresses for fixed IPs. There is a great probability your router is configured to a network like 192.168.0.1/24 and the DHCP server range from 192.168.0.2 to 192.168.0.254. Change that range from 192.168.0.10 to 192.168.0.254 and set your server IP to 192.168.0.2. You´ll still have 192.168.0.3 to 192.168.0.9 in case you need other static IPs.

Where do I change this range?

Access your router with an internet browser. Check your own IP configuration to find out its address. It´s called default gateway. If your network is as described above it´s most likely to be 192.168.0.1. You´ll need a login and password that can be found in the router manual or eventualy on a sticker on the router itself. That depends on the brand. This is important to make sure your DHCP server will not give your server IP to another host in the network. But if you are sure the quantity of hosts in the network is not going to grow close to the maximum of hosts allowed by your network mask (253 in case your mask is 255.255.255.0) you can use the numbers at the end of the range your DHCP server send. Ex: if the hosts in the network get low IPs 192.168.0.2 .. .3 ... .4 etc... use .253 ..252 ...251 etc... Just check one station in the network to make sure because the DHCP server can be configured to give IPs in descending order.

mosh1 wrote:
As for the firewall you can access it from the windows control panel of the server. You just need to add a rule to the port 3306/TCP.

Already did it before. Wire connection now works.

So do exactly the same with the wireless interface.

mosh1 wrote:
I never used MySQL with a windows server but with a linux server you have to edit the my.cnf file and comment out the skip-networking line to allow TCP connections from another host.

TCP connections work, problem is the wireless.

OK. That is one eventual problem solved.
Regards,

André Dutheil
FWH 13.04 + HB 3.2 + MSVS 10
ADutheil
 
Posts: 368
Joined: Sun May 31, 2009 6:25 pm
Location: Salvador - Bahia - Brazil

Re: MySql on LAN

Postby mosh1 » Wed Aug 29, 2012 12:24 pm

ADutheil wrote:Access your router with an internet browser. Check your own IP configuration to find out its address. It´s called default gateway.

Cannot find it. May be its called other name in my router? I have a DI-724U D-lynk

This is important to make sure your DHCP server will not give your server IP to another host in the network. But if you are sure the quantity of hosts in the network is not going to grow close to the maximum of hosts allowed by your network mask (253 in case your mask is 255.255.255.0) you can use the numbers at the end of the range your DHCP server send. Ex: if the hosts in the network get low IPs 192.168.0.2 .. .3 ... .4 etc... use .253 ..252 ...251 etc... Just check one station in the network to make sure because the DHCP server can be configured to give IPs in descending order.


Can you explain more? I need to make sure DCHP dont give same IP to another server?

mosh1 wrote:
As for the firewall you can access it from the windows control panel of the server. You just need to add a rule to the port 3306/TCP.

Already did it before. Wire connection now works.

So do exactly the same with the wireless interface.


How to do it?
mosh1
 
Posts: 129
Joined: Sun Oct 09, 2011 3:50 pm

Re: MySql on LAN

Postby ADutheil » Wed Aug 29, 2012 1:47 pm

mosh1 wrote:
ADutheil wrote:Access your router with an internet browser. Check your own IP configuration to find out its address. It´s called default gateway.

Cannot find it. May be its called other name in my router? I have a DI-724U D-lynk

Just try http://192.168.0.1 with your internet browser from a wired host. If your router still has its factory settings it will ask for login: admin with no password should work.

ADutheil wrote:This is important to make sure your DHCP server will not give your server IP to another host in the network. But if you are sure the quantity of hosts in the network is not going to grow close to the maximum of hosts allowed by your network mask (253 in case your mask is 255.255.255.0) you can use the numbers at the end of the range your DHCP server send. Ex: if the hosts in the network get low IPs 192.168.0.2 .. .3 ... .4 etc... use .253 ..252 ...251 etc... Just check one station in the network to make sure because the DHCP server can be configured to give IPs in descending order.

Can you explain more? I need to make sure DCHP dont give same IP to another server? [/quote]
Theoretically yes, but if you are on a small network (less than 200 hosts) just use an IP number at the end of the range.

mosh1 wrote:
ADutheil wrote:As for the firewall you can access it from the windows control panel of the server. You just need to add a rule to the port 3306/TCP.
mosh1 wrote:Already did it before. Wire connection now works.

ADutheil wrote:So do exactly the same with the wireless interface.

How to do it?

First try to disable your firewall to make sure the problem is firewall related.
I´m not sure it is relevant or even it exists under a windows server but you could try to set the bind-address parameter from my.cnf to = 0.0.0.0 to make sure MySQL will anwer on any interface.
Regards,

André Dutheil
FWH 13.04 + HB 3.2 + MSVS 10
ADutheil
 
Posts: 368
Joined: Sun May 31, 2009 6:25 pm
Location: Salvador - Bahia - Brazil

Re: MySql on LAN

Postby mosh1 » Wed Aug 29, 2012 2:23 pm

ADutheil wrote:
mosh1 wrote:
ADutheil wrote:Access your router with an internet browser. Check your own IP configuration to find out its address. It´s called default gateway.

Cannot find it. May be its called other name in my router? I have a DI-724U D-lynk

Just try http://192.168.0.1 with your internet browser from a wired host. If your router still has its factory settings it will ask for login: admin with no password should work.

Yes I know about it but I dont see gateway there.
mosh1
 
Posts: 129
Joined: Sun Oct 09, 2011 3:50 pm

Re: MySql on LAN

Postby mosh1 » Wed Aug 29, 2012 2:24 pm

Adolfo wrote:Mosh

Some time ago I did some test with MSSQL on a Linux BOX, DNS on, and some Xp machines...

Surprinsingly, conecting thru the server's IP, was faster than using the server NETBIOS name...(at least on first connection)
Since then (some 8 years or so) I decided to only use IP access for mysql, Didn't have any problem in years.

Why don't you try to put a FIXED IP on the server, and access Mysql that way ?

From Chile
Adolfo


Adolfo,
Can you please explain where I get this IP and where I put it?
Thanks
mosh1
 
Posts: 129
Joined: Sun Oct 09, 2011 3:50 pm

Re: MySql on LAN

Postby Adolfo » Wed Aug 29, 2012 2:42 pm

Mosh1

Please send me a mail to desarrollo at xdata.cl

From Chile
Adolfo
;-) Ji,ji,ji... buena la cosa... "all you need is code"

http://www.xdata.cl - Desarrollo Inteligente
----------
Asus TUF F15, 32GB Ram, 2 * 1 TB NVME M.2, GTX 1650
User avatar
Adolfo
 
Posts: 860
Joined: Tue Oct 11, 2005 11:57 am
Location: Chile

Re: MySql on LAN

Postby ADutheil » Wed Aug 29, 2012 2:48 pm

mosh1 wrote:Yes I know about it but I dont see gateway there.

Forget it. If you can access your router configuration page at 192.168.0.1 this address is your gateway.
Regards,

André Dutheil
FWH 13.04 + HB 3.2 + MSVS 10
ADutheil
 
Posts: 368
Joined: Sun May 31, 2009 6:25 pm
Location: Salvador - Bahia - Brazil

Re: MySql on LAN

Postby mosh1 » Sun Sep 02, 2012 1:36 am

Adolfo wrote:Mosh1

Please send me a mail to desarrollo at xdata.cl

From Chile
Adolfo


Hello!
Still waiting for answer
mosh1
 
Posts: 129
Joined: Sun Oct 09, 2011 3:50 pm

Previous

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 66 guests