View Single Post
  #1   (View Single Post)  
Old 23rd November 2008
biscuits biscuits is offline
Port Guard
 
Join Date: Oct 2008
Posts: 10
Default Mysql installation woes...

Im trying to install mysql on freebsd 6.2 for the first time ...

Installed mysql4-server from the ports,
Created the directory /usr/local/mysql/data and chmod 777 the data folder
Then added into rc.conf:

mysql_enable="YES"
mysql_dbdir="/usr/local/mysql/data"

I'm trying to access mysql using "mysql -u root -p" and keep getting the error: ERROR 2002: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)

Getting a bit fustrated here, not having much luck googling it - any tips to get this working ???

Cheers,
Dave.
Reply With Quote