Re: Tomcat connecting to MySQL - Ubuntu 8.10 Server



Ambrose Krapacs wrote:

PLEASE don't top-post.

Perhaps you are on to something here. Below is the output from 3
attempts to telnet to localhost on port 3306. Something doens't seem
right..

ambrose@ubuntusrvr:~$ telnet localhost 3306
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
=
5.0.67-0ubuntu6pOw,olQ3,FIyF1c!tIO2IConnection closed by foreign
host.

Actually, that looks pretty normal - I don't do MySQL, but many servers
close the port immediately if you don't send a proper packet. In this
case it did _open_ the port, so it's there and accepting connections.

Mysql must have a command line client. Try it.

For instance, in postgres, I'll use:

# psql database -h localhost

for a local tcp-socket connection to "database" - but you definitely need
it to be trying to connect by TCP, not unix sockets.
--
derek


--
ubuntu-users mailing list
ubuntu-users@xxxxxxxxxxxxxxxx
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users



Relevant Pages

  • Re: C# Reflection - Nasty bug??
    ... still get the prompt although I cannot connect to the server with my client. ... > Can you telnet into localhost to the port your server is running and get ... >> "is it possible for you to indicate that all connections in your program ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Q: high-port tcp connections from localhost to localhost in HP-UX 11.31
    ... Rick Jones writes: ... localhost to localhost using high port numbers. ... connections are in state TIME_WAIT. ... I also found a server listening on UDP localhost port ...
    (comp.sys.hp.hpux)
  • Re: MySQL/PHPMyAdmin on FC3 Connection Problem
    ... You say you opened the port 3306, ... that means that mysql is running and listening. ... If you had connection, then now try to access your mysql server from outside ... If you cannot connect on localhost, then please check that mysql is running ...
    (Fedora)
  • Re: ssh tunnel problems
    ... Connecting to localhost port 5000. ... debug1: connect to address 127.0.0.1 port 5000: Connection refused ... password and I connect and see files on my home computer (from being ...
    (Fedora)
  • How did this happen?
    ... May 12 06:50:43 localhost sshd: Failed password for illegal user ... cgi from 212.93.149.205 port 2265 ... Starting sshd: ...
    (comp.os.linux.security)

Loading