delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/08/03/13:38:05

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <410FCD4D.7000702@yahoo.com>
Date: Tue, 03 Aug 2004 12:37:17 -0500
From: Will Martell <willmartell AT yahoo DOT com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.1) Gecko/20040707
MIME-Version: 1.0
To: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Subject: MySQL Client, Windows 2000 Server, Cygwin
X-IsSubscribed: yes

Hello Group,

I hope all are well.

I am trying to resolve a problem with the MySQL client compiled under 
Cygwin.

I am receiving the error:
ERROR 2002: Can't connect to local MySQL server through socket 
'/tmp/mysql.sock' (2)

I fixed the problem by invoking MySQL like this:
mysql -h 127.0.0.1

My Question is... How can I avoid having to type this "-h 127.0.0.1" in 
every time I access mysql from cygwin.

I have made an alias for mysql in my .bashrc file and it works fine, but 
I feel like I am cheating.

Do I have to rebuild from source to set the correct parameter??

If I do have to rebuild from source, could someone tell me what 
parameter to set so that I can build it correctly.

Thanks in Advance for your help.  And Thank You for reading my email.

William Martell
Dallas Texas

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019