installing MySQL with FreeBSD pkg_add

Kevin Kinsey kdk at daleco.biz
Sat May 20 11:26:58 PDT 2006


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



More information about the freebsd-questions mailing list