MySql on LAN

MySql on LAN

Postby mosh1 » Sun Aug 26, 2012 10:34 pm

Sorry for asking here - I cannot figure out how can I setup mysql on a local network
what do i need to do? i installed MySql on both and each one has his own localhost so how do I connect to other machine?
mosh1
 
Posts: 129
Joined: Sun Oct 09, 2011 3:50 pm

Re: MySql on LAN

Postby mosh1 » Mon Aug 27, 2012 1:34 am

mosh1 wrote:Sorry for asking here - I cannot figure out how can I setup mysql on a local network
what do i need to do? i installed MySql on both and each one has his own localhost so how do I connect to other machine?


If I am not clear - please ask details.
mosh1
 
Posts: 129
Joined: Sun Oct 09, 2011 3:50 pm

Re: MySql on LAN

Postby ShumingWang » Mon Aug 27, 2012 4:00 am

One computer named computer1 install mysql server , open TCP/IP 3306 port, for example ip set to 192.168.1.10 .
other computers login the mysql server ip 192.168.1.10 or computer name 'computer1'

Regards!
Shuming Wang
http://www.xtech2.top
Mobile:(86)13802729058
Email:100200651@qq.com
QQ:100200651
Weixin: qq100200651
ShumingWang
 
Posts: 465
Joined: Sun Oct 30, 2005 6:37 am
Location: Guangzhou(Canton),China

Re: MySql on LAN

Postby mosh1 » Mon Aug 27, 2012 4:40 am

ShumingWang wrote:One computer named computer1 install mysql server , open TCP/IP 3306 port, for example ip set to 192.168.1.10 .
other computers login the mysql server ip 192.168.1.10 or computer name 'computer1'

Regards!
Shuming Wang


Thanks! Where do I set ip of a computer? I use dynamic ip's
mosh1
 
Posts: 129
Joined: Sun Oct 09, 2011 3:50 pm

Re: MySql on LAN

Postby mosh1 » Mon Aug 27, 2012 4:56 am

ShumingWang wrote:One computer named computer1 install mysql server , open TCP/IP 3306 port, for example ip set to 192.168.1.10 .
other computers login the mysql server ip 192.168.1.10 or computer name 'computer1'

Regards!
Shuming Wang


Thanks!

It worked with computer name, but only with wire connected. Wireless doesn't work
mosh1
 
Posts: 129
Joined: Sun Oct 09, 2011 3:50 pm

Re: MySql on LAN

Postby mosh1 » Tue Aug 28, 2012 7:42 pm

Any ideas why wireless connection doesn't work?
mosh1
 
Posts: 129
Joined: Sun Oct 09, 2011 3:50 pm

Re: MySql on LAN

Postby Rick Lipkin » Tue Aug 28, 2012 7:57 pm

Mosh

Don't forget that a wireless is a 'router' like any other router and is its own virtual LAN connected thru another router. Only devices that share the same LAN can see each other.

I am not a router guy and I know there is a way to tie all your 'lans' together so they can see each other .. just depends on your equipment.

Rick Lipkin
User avatar
Rick Lipkin
 
Posts: 2665
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA

Re: MySql on LAN

Postby mosh1 » Tue Aug 28, 2012 8:09 pm

Rick Lipkin wrote:Mosh

Don't forget that a wireless is a 'router' like any other router and is its own virtual LAN connected thru another router. Only devices that share the same LAN can see each other.

I am not a router guy and I know there is a way to tie all your 'lans' together so they can see each other .. just depends on your equipment.

Rick Lipkin


Computers can see each other
mosh1
 
Posts: 129
Joined: Sun Oct 09, 2011 3:50 pm

Re: MySql on LAN

Postby Rick Lipkin » Tue Aug 28, 2012 8:23 pm

Mosh

It is a bit more complicated .. each router is its own gateway and the IP numbers it generates are a subset of that routers gateway.

Again, I am no expert .. if you are calling your database by its (dns) name .. that name apparently is not being resolved.

You can go to a DOS prompt and at the command line type :

NSLOOKUP ( and the name of your server or database) and see if it resolves the IP address. You can also substitute the IP address for the name and see if it resolves that way.

This is really a Dns resolution issue between routers. I would have to do some more research .. or you can Google "dns resolution problems" ... hopefully that will give you some ideas.

Rick Lipkin
User avatar
Rick Lipkin
 
Posts: 2665
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA

Re: MySql on LAN

Postby Adolfo » Tue Aug 28, 2012 8:31 pm

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
;-) 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 » Tue Aug 28, 2012 8:37 pm

If your server is wireless you have to open the 3306 port of the wireless interface. Did you?
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 » Tue Aug 28, 2012 9:22 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


Where do I put the fixed IP?
mosh1
 
Posts: 129
Joined: Sun Oct 09, 2011 3:50 pm

Re: MySql on LAN

Postby mosh1 » Tue Aug 28, 2012 9:22 pm

ADutheil wrote:If your server is wireless you have to open the 3306 port of the wireless interface. Did you?


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

Re: MySql on LAN

Postby Rick Lipkin » Tue Aug 28, 2012 9:39 pm

Mosh

You have to go into the Lan adapter settings .. each OS is a bit different. This is my Xp box .. Once you get to your Adapter properties .. click TCP\IP Properties and un-check DHCP and plug in the appropriate IP address that would have been issued from your Router.

Rick Lipkin

Image
User avatar
Rick Lipkin
 
Posts: 2665
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA

Re: MySql on LAN

Postby mosh1 » Tue Aug 28, 2012 10:06 pm

Rick Lipkin wrote:Mosh
You have to go into the Lan adapter settings .. each OS is a bit different. This is my Xp box .. Once you get to your Adapter properties .. click TCP\IP Properties and un-check DHCP and plug in the appropriate IP address that would have been issued from your Router.


Where do I get that "appropriate IP address"?

PS
Don't see DHCH on your screen shot
mosh1
 
Posts: 129
Joined: Sun Oct 09, 2011 3:50 pm

Next

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 83 guests