MySQL 5 macports setup
You have to symlink mysql to the location on osx
first find out where mysql has put the socket:
Next symlink /tmp/mysql.sock to the right location of the socket
Start MySQL
or
Stop MySQL
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