Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 Apr 2004 19:18:00 +0100
From:      Shaun Friedle <shaun@insipidity.co.uk>
To:        chip <chip@wiegand.org>
Cc:        questions@freebsd.org
Subject:   Re: installed mysql/php/apache but there's no mysql.sock file
Message-ID:  <1082225880.288.8.camel@Shaun>
In-Reply-To: <40816CA3.8070708@wiegand.org>
References:  <40816CA3.8070708@wiegand.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 2004-04-17 at 18:42, chip wrote: 
> I then created a file in /tmp called mysql.sock but 
> mysql still gives the same error -[error 2002] cannot connect to local 
> mysql server through /tmp/mysql.sock (2).
> I read the section in the mysql manual about the socket but don't see 
> anything about creating this file.
> How do I fix this?

I'm not an expert on mysql, but I believe you get that message if mysqld
isn't running (and because it isn't running, it hasn't created the
file). Have you checked if it is running (ps waux | grep mysqld)?

If it isn't, run it (should be in the bin directory of mysql).


-- 
Shaun Friedle



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1082225880.288.8.camel>