From owner-freebsd-questions Wed Jan 9 4:26:29 2002 Delivered-To: freebsd-questions@freebsd.org Received: from bisclavret.iris33.ac-bordeaux.fr (0332832Z-nat1.ac-bordeaux.fr [194.199.34.67]) by hub.freebsd.org (Postfix) with ESMTP id 3839837B417 for ; Wed, 9 Jan 2002 04:26:20 -0800 (PST) Received: (from benoit@localhost) by bisclavret.iris33.ac-bordeaux.fr (8.11.1/8.11.1) id g09CQZO35351 for freebsd-questions@FreeBSD.org; Wed, 9 Jan 2002 13:26:35 +0100 (CET) (envelope-from benoit) Date: Wed, 9 Jan 2002 13:26:35 +0100 From: Benoit Lacherez To: freebsd-questions@FreeBSD.org Subject: Re: Socket troubles with MySQL Message-ID: <20020109132635.A35327@bisclavret.iris33.ac-bordeaux.f> References: <20020109115108.A35101@bisclavret.iris33.ac-bordeaux.f> <1010574360.20830.6.camel@blowfish.dev.mt.lv> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.2.5i In-Reply-To: <1010574360.20830.6.camel@blowfish.dev.mt.lv>; from denis@mt.lv on Wed, Jan 09, 2002 at 01:06:00PM +0200 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 Denis J. Cirulis wrote : > 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. Of course, I thought about that, but mysqld is running. I had this kind of trouble someday when I deleted by accident /tmp/mysql.sock. But now, this file is still there. I really can't figure what the trouble is from. -- Benoit Lacherez Académie de Bordeaux -- CATICE Projet de traduction de la documentation de Python: http://frpython.sourceforge.net/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message