Date: Sun, 18 Feb 2007 22:49:55 +0100 From: Miroslav Lachman <000.fbsd@quip.cz> To: "Rajen Jani (BT Yahoo! Broadband)" <x_element108@btinternet.com> Cc: freebsd-database@freebsd.org Subject: Re: Error 2002 (HY000) Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) Message-ID: <45D8CA03.5020808@quip.cz> In-Reply-To: <45D894A6.7010209@btinternet.com> References: <45D894A6.7010209@btinternet.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Rajen Jani (BT Yahoo! Broadband) wrote: > Hi everyone, > > I have installed mySQL server 5.0.27 from the ports directory. > Everytime I connect to it using > "mysql -h localhost -u rajen -p" I get the above error. I have no idea > as to how I can resolve this > problem. I have tried telneting localhost and it says that the > connection is refused. Please suggest > how I can get around this, Thanks. Is MySQL daemon runnig? What is output of command: ps -auxwww | grep mysqld and output of ls -al /tmp/mysql.sock Can you connect to MySQL from other software, or by mysql -h 127.0.0.1 -u rajen -p ? Miroslav Lachman
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?45D8CA03.5020808>