RE: Connecting to MySQL on Linux from a Windows machine. -- Resolved !!

2002-10-19 Thread Will Merrell
Well, after much fussing around with RPM's and searching this list, I have
resolved my problem.

The clue was the discussion on this list regarding the glibc bug. I upgraded
to the 4.0.x RPM's that I got from the MySQL site and after I got all of the
dependency problems fixed I was able to start up a MySQL/PHP setup that
worked. Now both the website development works and I can use MyCC on the
windows machine to administer the database.

Thank you to all that considered my problem.

--Will


-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




RE: Connecting to MySQL on Linux from a Windows machine.

2002-10-18 Thread Randy Witt
Will,

Do you have a user/host pair for the client in the user table within the
mysql database?? It's not good enough just to have a user, the host has
to be setup too.


 I cannot connect from my Windows machine to the MySQL database running
on
 the Linux server.
 
 I have tried several different programs and they all report an error
that
 says Lost connection to MySQL server during connection.
 
 I have read all the articles I can find and searched the archives as
well
 as
 I can figure out but I am still stumped.
 
 Here are some pertinent details.
 
 1) The Server is running Redhat 7.3 and MySQL 3.23.49. It is on my
local
 network at 192.168.3.2 and there are no firewalls between it and the
 Windows
 machine. (Both are behind the same firewall, and completely open to
each
 other.)
 
 2) The Windows machine is running Win98 SE at 192.168.3.x (DHCP).
 
 3) On the linux machine I can access MySQL just fine. The mysql
command
 works, and I can serve web pages with PHP/MySQL content.
 
 4) I can telnet, Samba, xterm, etc. to the linux machine just fine. I
can
 telnet to port 80 and get a connection although it doesn't do much
there.
 
 5) I cannot telnet to port 3306. When I try, I get an immediate Host
 connection lost. error.
 
 Any ideas would be most appreciated.
 
   Thanks,
   -- Will



-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Connecting to MySQL on Linux from a Windows machine.

2002-10-18 Thread Will Merrell
I cannot connect from my Windows machine to the MySQL database running on
the Linux server.

I have tried several different programs and they all report an error that
says Lost connection to MySQL server during connection.

I have read all the articles I can find and searched the archives as well as
I can figure out but I am still stumped.

Here are some pertinent details.

1) The Server is running Redhat 7.3 and MySQL 3.23.49. It is on my local
network at 192.168.3.2 and there are no firewalls between it and the Windows
machine. (Both are behind the same firewall, and completely open to each
other.)

2) The Windows machine is running Win98 SE at 192.168.3.x (DHCP).

3) On the linux machine I can access MySQL just fine. The mysql command
works, and I can serve web pages with PHP/MySQL content.

4) I can telnet, Samba, xterm, etc. to the linux machine just fine. I can
telnet to port 80 and get a connection although it doesn't do much there.

5) I cannot telnet to port 3306. When I try, I get an immediate Host
connection lost. error.

Any ideas would be most appreciated.

Thanks,
-- Will


-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Re: Connecting to MySQL on Linux from a Windows machine.

2002-10-18 Thread Olaf van Zandwijk
Hi,

It seems to me that you can't connect to MySQL from an other machine at 
all. Did you start MySQL with the --skip-networking option? Try removing 
that option from the start-up scripts.

\Olaf

Will Merrell wrote:

I cannot connect from my Windows machine to the MySQL database running on
the Linux server.

I have tried several different programs and they all report an error that
says Lost connection to MySQL server during connection.

I have read all the articles I can find and searched the archives as well as
I can figure out but I am still stumped.

Here are some pertinent details.

1) The Server is running Redhat 7.3 and MySQL 3.23.49. It is on my local
network at 192.168.3.2 and there are no firewalls between it and the Windows
machine. (Both are behind the same firewall, and completely open to each
other.)

2) The Windows machine is running Win98 SE at 192.168.3.x (DHCP).

3) On the linux machine I can access MySQL just fine. The mysql command
works, and I can serve web pages with PHP/MySQL content.

4) I can telnet, Samba, xterm, etc. to the linux machine just fine. I can
telnet to port 80 and get a connection although it doesn't do much there.

5) I cannot telnet to port 3306. When I try, I get an immediate Host
connection lost. error.

Any ideas would be most appreciated.

	Thanks,
		-- Will


-
Before posting, please check:
  http://www.mysql.com/manual.php   (the manual)
  http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
 


--
 __XXX__
  (0-0)
+--ooO--(_)--Ooo---+
|  |
| Olaf van Zandwijk|
|  |
| ICQ# 30231605|
| PGP Public Key: http://www.vanzandwijk.net/pgp.txt   |
+--+





-
Before posting, please check:
  http://www.mysql.com/manual.php   (the manual)
  http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




RE: Connecting to MySQL on Linux from a Windows machine.

2002-10-18 Thread Will Merrell
Thank you to both of you who responded to my question. I have checked both
of these issues and found that neither solve  my situation.

1) I have (and had) both a 'will@localhost' and a 'will@%' entry in the
user table. Is there something else that has to be done to set up the host?

2) According to 'mysqladmin variables' the --skip-networking option is set
to OFF. That should mean that Olaf's suggestion is satisfied, right?

So I still need some more ideas. Why am I not able to connect to MySQL from
another machine?

Thanks,
-- Will


Randy Witt wrote:
Will,

Do you have a user/host pair for the client in the user table within the
mysql database?? It's not good enough just to have a user, the host has
to be setup too.

And
Olaf van Zandwijk wrote:
 Hi,

 It seems to me that you can't connect to MySQL from an other machine at
 all. Did you start MySQL with the --skip-networking option? Try removing
 that option from the start-up scripts.

 \Olaf


In response to my Original Post:
Will Merrell wrote:

I cannot connect from my Windows machine to the MySQL database running on
the Linux server.

I have tried several different programs and they all report an error that
says Lost connection to MySQL server during connection.

I have read all the articles I can find and searched the archives as well
as
I can figure out but I am still stumped.

Here are some pertinent details.

1) The Server is running Redhat 7.3 and MySQL 3.23.49. It is on my local
network at 192.168.3.2 and there are no firewalls between it and the
Windows
machine. (Both are behind the same firewall, and completely open to each
other.)

2) The Windows machine is running Win98 SE at 192.168.3.x (DHCP).

3) On the linux machine I can access MySQL just fine. The mysql command
works, and I can serve web pages with PHP/MySQL content.

4) I can telnet, Samba, xterm, etc. to the linux machine just fine. I can
telnet to port 80 and get a connection although it doesn't do much there.

5) I cannot telnet to port 3306. When I try, I get an immediate Host
connection lost. error.

Any ideas would be most appreciated.

   Thanks,
   -- Will


-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




RE: Connecting to MySQL on Linux from a Windows machine.

2002-10-18 Thread STIBS
Will,

|||)So I still need some more ideas.

I have to learn your problem each time again when I setup a new machine every half a 
year.

I try each time the following hostnames:

localhost (didn't work 4u)
127.0.0.1 (IP for localhost)
hostname (e.g. databaseserver.mydomain.com- what you called the machine)
192.168.0.x  (Your real network IP, can also be in 10.* or 172.25.*)
localhost.localdomain (results to same as hostname)

one of them fit's ;o) ... if not I install webmin from www.webmin.com and connect via 
Browser to the machine (http://IP.ADD.RE.SS:1 - login as root). In Webmin's server 
section you have a complete webbased MySQL administration. There I make all settings 
and forget about it. It just works after this setup.

STIBS


-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




RE: Connecting to MySQL on Linux from a Windows machine.

2002-10-18 Thread Will Merrell
Thank you, but at this point I am pretty sure that my problem is not a
matter of entries in the user table. When I attempt to telnet into port 3306
the connection is immediately dropped. I don't really know if any connection
is actually established at all, it may be established and immediately
dropped on simply refused from the start. There does not appear to be any
exchange of user names or passwords. I have several variations of my
username and host name in the user table. I believe that one of them should
have worked if that was the problem.

I believe that the problem lies in the mysql configuration. I think that it
is not responding to the TCP/IP port in the way that I need it to. I have
verified that the --skip-network flag is NOT set (set to OFF) so it is not
that simple, but I cannot find any other flag that looks any more promising.

Any other Ideas?

BTW Thanks for the webmin tip, I'll give it a try. Doesn't solve all of my
problem, but it may help.

Thanks,
--Will


 -Original Message-
 From: STIBS [mailto:stibs-pi;gmx.de]
 Sent: Friday, October 18, 2002 1:35 PM
 To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Subject: RE: Connecting to MySQL on Linux from a Windows machine.


 Will,

 |||)So I still need some more ideas.

 I have to learn your problem each time again when I setup a new
 machine every half a year.

 I try each time the following hostnames:

 localhost (didn't work 4u)
 127.0.0.1 (IP for localhost)
 hostname (e.g. databaseserver.mydomain.com- what you called the machine)
 192.168.0.x  (Your real network IP, can also be in 10.* or 172.25.*)
 localhost.localdomain (results to same as hostname)

 one of them fit's ;o) ... if not I install webmin from
 www.webmin.com and connect via Browser to the machine
 (http://IP.ADD.RE.SS:1 - login as root). In Webmin's server
 section you have a complete webbased MySQL administration. There
 I make all settings and forget about it. It just works after this setup.

 STIBS



-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




RE: Connecting to MySQL on Linux from a Windows machine.

2002-10-18 Thread Ed Carp
 Thank you, but at this point I am pretty sure that my problem is not a
 matter of entries in the user table. When I attempt to telnet
 into port 3306
 the connection is immediately dropped. I don't really know if
 any connection
 is actually established at all, it may be established and immediately
 dropped on simply refused from the start. There does not appear to be any
 exchange of user names or passwords. I have several variations of my
 username and host name in the user table. I believe that one of
 them should
 have worked if that was the problem.

If you try and telnet to port 3306 on the machine that MySQL is running on,
you will see the connection being established, then you'll see garbage, as
MySQL is designed to talk to clients on that port, not humans ;)

If you are seeing the connection being established, then *immediately*
dropped, not refused, then the problem may be in MySQL.  If the connection
is refused, this is a different issue.

Depending on what version of MySQL and Linux/whatever you're running, I
believe there's a verified problem with MySQL and RedHat Linux - mismatch
of glibc version, I think.


-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php