From owner-freebsd-questions@FreeBSD.ORG Wed Mar 3 08:25:51 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 A832216A4CE for ; Wed, 3 Mar 2004 08:25:51 -0800 (PST) Received: from pemaquid.safeport.com (pemaquid.safeport.com [204.156.12.58]) by mx1.FreeBSD.org (Postfix) with ESMTP id 43DF043D31 for ; Wed, 3 Mar 2004 08:25:51 -0800 (PST) (envelope-from doug@safeport.com) Received: from pemaquid.safeport.com (localhost [127.0.0.1]) by pemaquid.safeport.com (8.12.9/8.12.3) with ESMTP id i23GPoRe022205 for ; Wed, 3 Mar 2004 11:25:50 -0500 (EST) (envelope-from doug@safeport.com) Received: from localhost (doug@localhost)i23GPnxj022202 for ; Wed, 3 Mar 2004 11:25:50 -0500 (EST) Date: Wed, 3 Mar 2004 11:25:49 -0500 (EST) From: doug@safeport.com To: freebsd-questions@FreeBSD.ORG Message-ID: <20040303105121.F13922@pemaquid.safeport.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: 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: Wed, 03 Mar 2004 16:25:51 -0000 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. I next removed mysql and its dependencies and reinstalled mysql-server-4.0.16 using pkg_add. I am still getting the same error. At this point I think it is a jail problem with something I missed in clean-up but I do not know where to look next. Having done all this, I recalled in installing the 2nd MySQL jail, it was necessary to remove and reinstall mysql. In that instance the re-installation solved the problem. Thanks for any ideas. _____ Douglas Denault doug@safeport.com Voice: 301-469-8766 Fax: 301-469-0601