Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 May 2006 13:26:50 -0500
From:      Kevin Kinsey <kdk@daleco.biz>
To:        Peter Michaux <petermichaux@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: installing MySQL with FreeBSD pkg_add
Message-ID:  <446F5F6A.7040101@daleco.biz>
In-Reply-To: <3cbaf1c80605200857t4043cc4r519088dad9ccc008@mail.gmail.com>
References:  <3cbaf1c80605200857t4043cc4r519088dad9ccc008@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Peter Michaux wrote:

> # mysql -uroot
> ERROR 2002 (HY000): Can't connect to local MySQL server through socket
> 'tmp/mysql.sock' (2)
> 
> What to do?
> 

The server isn't running.  Start it, and this message
will go away.

If the port/package is correctly installed, then

$ /usr/local/etc/rc.d/mysql-server.sh start

as root should do the trick.

To have mysql-server start automagically, add:

mysql_enable="YES"

to the file /etc/rc.conf

BTW, shouldn't there be a space between the "-u"
and the "root" ?  Probably just a c-n-p error.

KDK

-- 
We are all in the gutter, but some of us are looking at the stars.
		-- Oscar Wilde




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