can't connect to mysql

albi at scii.nl albi at scii.nl
Sun May 15 12:53:04 PDT 2005


On Sun, 15 May 2005 15:37:11 -0400
Eric Cheney <cheney at soc.umass.edu> wrote:

> Here's the error I get....
> 
> ****begin error message******
> 
> max# mysql -u root -p
> Enter password:
> ERROR 2002: Can't connect to local MySQL server through socket
> '/tmp/mysql.sock' (2)
---- cut ----
> So then I did this, as root ....
> 
> max# /usr/local/etc/rc.d/mysql-server.sh start

you have to specifically enable it in /etc/rc.conf :

mysql_enable="YES"

it's documented in /usr/local/etc/rc.d/mysql-server.sh



More information about the freebsd-questions mailing list