DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD Ports and Packages

FreeBSD Ports and Packages Installation and upgrading of ports and packages on FreeBSD.

Reply
 
Thread Tools Display Modes
  #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
  #2   (View Single Post)  
Old 23rd November 2008
biscuits biscuits is offline
Port Guard
 
Join Date: Oct 2008
Posts: 10
Default

Nevermind, I figured out what I was missing!

"mysql_install_db --user=mysql"

Cheers,
Dave.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Xorg installation LordZ OpenBSD Installation and Upgrading 10 23rd November 2008 05:52 PM
D-BUS error in new installation zelut FreeBSD General 1 3rd October 2008 07:26 PM
freebsd 7 64 bit installation ijk FreeBSD Installation and Upgrading 9 1st September 2008 03:16 AM
widescreen woes jbhappy FreeBSD General 8 25th June 2008 08:25 PM
mysql using >100% cpu bdj FreeBSD General 5 16th May 2008 04:20 PM


All times are GMT. The time now is 11:09 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick