From owner-freebsd-hackers@FreeBSD.ORG Tue Nov 30 13:57:11 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D563E16A4CE for ; Tue, 30 Nov 2004 13:57:11 +0000 (GMT) Received: from recife.ipadnet.com.br (recife.ipadnet.com.br [200.249.204.129]) by mx1.FreeBSD.org (Postfix) with ESMTP id 899F643D1F for ; Tue, 30 Nov 2004 13:57:10 +0000 (GMT) (envelope-from mario.lobo@ipad.com.br) Received: from marioLobo ([200.249.204.142]) by recife.ipadnet.com.br (8.12.8/8.12.8) with ESMTP id iAUE26Mr012596 for ; Tue, 30 Nov 2004 11:02:06 -0300 From: mario.lobo@ipad.com.br Organization: IPAD To: freebsd-hackers@freebsd.org Date: Tue, 30 Nov 2004 11:00:36 -0300 MIME-Version: 1.0 Message-ID: <41AC52D4.5018.BB5BBB@localhost> Priority: normal X-mailer: Pegasus Mail for Windows (4.21c) Content-type: text/plain; charset=ISO-8859-1 Content-transfer-encoding: Quoted-printable Content-description: Mail message body Subject: MYSQL connection problem X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: mario.lobo@ipad.com.br List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Nov 2004 13:57:11 -0000 Hi Guys; As always, if this list is not the right place, please forgive me. I have two machines: 1) Free 4.10 / mysql (5.0.0) listening on port 5006 2) Free 5.3 Release / mysql (5.0.0) listening on port 5007 On both, no firewalls, blocks or anything of that sort. Both machines have= the same configuration. Both mysql were compiled from the ports with the same options. The only di= fference between the two machines is the Free version and port mysql is listening on. Here are the outputs of the following commands on machine 1): >telnet localhost 5006 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. 9 5.0.0-alpha}l'zRjBG,!js%Zxl6f"p3 (after a few seconds...) Connection closed by foreign host. --------------------------------------------- >mysql -u root -P 5006 -h 127.0.0.1 -p Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 8 to server version: 5.0.0-alpha Type 'help;' or '\h' for help. Type '\c' to clear the buffer. mysql> ********************** Now, here are the outputs of the same commands on machine 2): ]>telnet localhost 5007 Trying ::1... Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. Connection closed by foreign host. (no wait for this line to show!) >mysql -u root -P 5007 -h 127.0.0.1 -p Enter password: ERROR 2013 (HY000): Lost connection to MySQL server during query ************** I can only connect on machine 2) if I use a mysql.sock file. Any attempt t= o connect via TCP/IP doesn=B4t work !! command line client, java connectors (all possible versi= ons) none work. I=B4ve been into every single link google returned to me on the ERROR 2013= above for 2 days now and none of them had any info to get this working. Believe me, I tried every h= int of suggestion there was. I really hope someone here has any clues to what is going on. thanks, -- //| //|| // | // || -//--//---|| ARIO LOBO // // || --------------------------------- mario.lobo@ipad.com.br http://www.ipad.com.br