Never been to CodeSnippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world (or not, you can keep them private!)

MySQL 5 macports setup (See related posts)

You have to symlink mysql to the location on osx

first find out where mysql has put the socket:
mysql_config5 --socket

Next symlink /tmp/mysql.sock to the right location of the socket
sudo ln -s path-of-mysql.sock-from-above /tmp/mysql.sock


Start MySQL
sudo /opt/local/share/mysql5/mysql/mysql.server start

or
/opt/local/bin/mysqld_safe5


Stop MySQL
sudo /opt/local/share/mysql5/mysql/mysql.server stop

Comments on this post

Araxia posts on Jan 16, 2008 at 21:25
Better to just use /opt/local/bin/mysqld_safe5. c.f. Installing MySQL
minofare posts on Jan 17, 2008 at 16:11
Thanks for the tip. Updated.

You need to create an account or log in to post comments to this site.