From owner-freebsd-questions Wed Jan 9 3:16:26 2002 Delivered-To: freebsd-questions@freebsd.org Received: from newmoon.mt.lv (newmoon.mt.lv [159.148.147.197]) by hub.freebsd.org (Postfix) with ESMTP id 2C65337B420 for ; Wed, 9 Jan 2002 03:16:21 -0800 (PST) Received: from blowfish.dev.mt.lv (blowfish.dev.mt.lv [10.0.0.80]) by newmoon.mt.lv (8.11.6/8.11.6) with ESMTP id g09BFaT22976 for ; Wed, 9 Jan 2002 13:15:36 +0200 Subject: Re: Socket troubles with MySQL From: "Denis J. Cirulis" To: freebsd-questions@FreeBSD.org In-Reply-To: <20020109115108.A35101@bisclavret.iris33.ac-bordeaux.f> References: <20020109115108.A35101@bisclavret.iris33.ac-bordeaux.f> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0 (Preview Release) Date: 09 Jan 2002 13:06:00 +0200 Message-Id: <1010574360.20830.6.camel@blowfish.dev.mt.lv> Mime-Version: 1.0 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, 2002-01-09 at 12:51, Benoit Lacherez wrote: > Hello, > > My web server is under FreeBSD 4.3. It runs Apache and MySQL and PHP > applications. After some uptime, PHP scripts return error messages > from MySQL telling : "Can't create socket" or "Can't use socket". > First, one script sometimes behaves like this, then it always ; > eventually, all scripts have this behaviour. > > If I reboot, the trouble vanishes. > > Does anybody know to resolve this problem ? You can get such an error when your MySQL database server is not running and not listenind to dedicated port. Try to use ps aux|grep mysql and examine what's wrong. -- 4.4 - number of the beastie. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message