X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Message-ID: <48482E82.4070602@etr-usa.com>
Date: Thu, 05 Jun 2008 12:20:50 -0600
From: Warren Young <warren@etr-usa.com>
User-Agent: Thunderbird 2.0.0.14 (Windows/20080421)
MIME-Version: 1.0
To: Cygwin-L <cygwin@cygwin.com>
Subject: Re: MySql doesn't work in cygwin
References: <17673717.post@talk.nabble.com>
In-Reply-To: <17673717.post@talk.nabble.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Berable wrote:
> 
> "can't connect to local Mysql Server through socket '/tmp/mysql.sock'"

[snip]

> socket  = /var/tmp/mysql.sock

Try changing /var/tmp to /tmp.

> Error   2003 (HY000):Can't connect to MySQL server on '127.0.0.1' (111)

What are the results of this command:

	$ netstat -na |grep LISTEN

Do you see anything listening on port 3306?

> But I'm want just use mysql command line 

My suggestion -- as one who has fought with this in the past -- is to 
just use the native Windows port, from mysql.com.  If you really need a 
Cygwin client, you can pass flags to MySQL's configure script to build 
only the client stuff.  You can then use the resulting mysql program and 
libmysqlclient library to connect to the native Windows server.

--
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/

