[TAG] ssh on debian
Benjamin A. Okopnik
ben at linuxgazette.net
Tue Sep 6 19:26:15 MSD 2005
On Tue, Sep 06, 2005 at 08:51:42AM +0200, SYNSPACE - Stephan Hostie wrote:
> I guess I must be a little bit stupid?
No, Stephan - not at all. Networking isn't either easy or obvious, and
there's no point in asuming that you're stupid just because you don't
understand it right away.
> In my.cnf, I wrote the port is 3306, and there is the line bind-address
> So I would think, telnet localhost 3306 or telnet 127.0.0.1 should work?
The problem here comes is when you say "In my.cnf" without defining
which machine it's on. Believe it or not, 127.0.0.1 is *any* machine -
when you're logged into it. It's like the word "I" in English: if I say
it and you say it, we're using the same word, but we're talking about
The way to solve the problem is to say *which* person (or which
computer) you're talking about, by using a unique reference (using their
name or pointing in the case of humans, using the assigned name or IP in
the case of computers.) So, when you say "in my.cnf" without telling us
which computer you're using (that is, telling us who you are) and which
computer you're checking for presence of MySQL (telling us who you're
talking to), you're not giving us enough information to answer you.
A good example of what we need to help you would be if you said
something like this:
I have two computers, called Alice (192.168.0.1) and Brian
(192.168.0.2). I'm running MySQL on Alice using the standard port; I
want to check if it's running from Brian. How can I do that?
The answer would then be "type 'telnet Alice 3306'." If you were asking
"How do I check from Alice if MySQL is running?", then one of the
correct answers would be "type 'telnet localhost 3306'".
* Ben Okopnik * Editor-in-Chief, Linux Gazette * http://linuxgazette.net *
More information about the TAG