From owner-freebsd-questions@FreeBSD.ORG Fri Mar 5 06:19:58 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 696AF16A4CE for ; Fri, 5 Mar 2004 06:19:58 -0800 (PST) Received: from geminix.org (gen129.n001.c02.escapebox.net [213.73.91.129]) by mx1.FreeBSD.org (Postfix) with ESMTP id E194843D49 for ; Fri, 5 Mar 2004 06:19:57 -0800 (PST) (envelope-from gemini@geminix.org) Message-ID: <40488C8A.9000504@geminix.org> Date: Fri, 05 Mar 2004 15:19:54 +0100 From: Uwe Doering Organization: Private UNIX Site User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.6) Gecko/20040119 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-questions@FreeBSD.ORG References: <20040303105121.F13922@pemaquid.safeport.com> In-Reply-To: <20040303105121.F13922@pemaquid.safeport.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Received: from gemini by geminix.org with asmtp (TLSv1:AES256-SHA:256) (Exim 3.36 #1) id 1AzGBA-000HQm-00; Fri, 05 Mar 2004 15:19:56 +0100 Subject: Re: mysql in a jail X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Mar 2004 14:19:58 -0000 doug@safeport.com wrote: > I have a system running four jails. MySQL is running in two of the jails and I > am trying to add it to a 3rd jail. Starting the server gets the message: > > 040302 19:34:15 mysql started > 040302 19:34:15 Can't start server : Bind on unix socket: Permission denied > 040302 19:34:15 Do you already have another mysqld server running on socket: > /tmp/mysql.sock ? > 040302 19:34:15 Aborting > 040302 19:34:15 /usr/local/libexec/mysqld: Shutdown Complete > 040302 19:34:15 mysqld ended > > The new jail was created by copying the file tree from a jail that had the > desired configuration and then doing clean-up as required. In response to the > error I tried configuring mysqld to use a different port and socket file. That > did not fix the problem. I had forgotten the other two mysql's are using port > 3306 and /tmp/mysql.sock. > [...] Are you sure that each jail runs on its own, unique IP address? If not, port binding conflicts are to be expected. You cannot have multiple MySQL daemons on the same IP address/port combination, regardless of whether they run inside jails or not. Uwe -- Uwe Doering | EscapeBox - Managed On-Demand UNIX Servers gemini@geminix.org | http://www.escapebox.net