From owner-freebsd-questions@FreeBSD.ORG Fri Jul 11 13:58:07 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 20C6D1065685 for ; Fri, 11 Jul 2008 13:58:07 +0000 (UTC) (envelope-from steve@ibctech.ca) Received: from ibctech.ca (v6.ibctech.ca [IPv6:2607:f118::b6]) by mx1.freebsd.org (Postfix) with SMTP id B3F5A8FC15 for ; Fri, 11 Jul 2008 13:58:06 +0000 (UTC) (envelope-from steve@ibctech.ca) Received: (qmail 87093 invoked by uid 89); 11 Jul 2008 14:00:55 -0000 Received: from unknown (HELO ?IPv6:2607:f118::5?) (steve@ibctech.ca@2607:f118::5) by 2607:f118::b6 with ESMTPA; 11 Jul 2008 14:00:55 -0000 Message-ID: <487766F4.1020901@ibctech.ca> Date: Fri, 11 Jul 2008 09:58:12 -0400 From: Steve Bertrand User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) MIME-Version: 1.0 To: =?ISO-8859-1?Q?=D2=E0=F0=E0=F1?= References: <48776604.4070403@ibctech.ca> In-Reply-To: <48776604.4070403@ibctech.ca> X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Cc: freebsd-questions@freebsd.org Subject: Re: Can't connect to local MySQL server through socket '/tmp/mysql.sock X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Jul 2008 13:58:07 -0000 Steve Bertrand wrote: > Тарас wrote: >> Hi! I need two MySQL servers run simultaneously. But when I try to run >> server I have > ....and then, I believe if you add this to your /etc/my.cnf file: > > [mysqld] > socket=/tmp/mysql.sock2 ...after thinking about it, this would likely cause both daemons to use the new socket file. Perhaps a better approach would be to start mysqld with the --socket=/tmp/mysql.sock2 argument, leaving /etc/my.cnf as is. Steve