Tag: MacPorts/mysql5.5
sudo port install mysql55-server
sudo emacs -nw /opt/local/etc/mysql55/my.cnf
# Use default MacPorts settings !include /opt/local/etc/mysql55/macports-default.cnf
[client] default-character-set=utf8 [mysqldump] default-character-set=utf8 [mysql] default-character-set=utf8 [mysqld] character-set-server=utf8
unalias sudo sudo -u _mysql /opt/local/lib/mysql55/bin/mysql_install_db
/opt/local/lib/mysql55/bin/mysqladmin -u root password 'new-password'
sudo port load mysql55-server
sudo port unload mysql55-server
sudo port uninstall mysql-server
sudo port install mysql55-server
sudo port deactivate mysql55-server mysql55 cd /opt/local/var/db sudo /bin/rm -r mysql55 sudo port activate mysql55-server mysql55 unalias sudo sudo -u _mysql /opt/local/lib/mysql55/bin/mysql_install_db
sudo -u _mysql /opt/local/lib/mysql55/bin/mysql_install_db
/opt/local/lib/mysql55/bin/mysqladmin -u root -p password 'new-password'