Tag: MacPorts/mysql5.5
sudo port install mysql55-server
---> Some of the ports you installed have notes: mysql55 has the following notes: On activation if no /opt/local/etc/mysql55/my.cnf file exists one will be created which loads /opt/local/etc/mysql55/macports-default.cnf. If a /opt/local/etc/mysql55/my.cnf file exists MacPorts does not touch it and any changes you make to /opt/local/etc/mysql55/my.cnf will be preserved (e.g., during port upgrades, deactivations or activations). /opt/local/etc/mysql55/my.cnf is a good place to customize your mysql55 installation. Any changes made to /opt/local/etc/mysql55/macports-default.cnf will be lost during port upgrades, deactivations or activations so you are advised to not make changes here. Currently /opt/local/etc/mysql55/macports-default.cnf contains only one directive; to disable networking. With disabled networking it is possible to install and have running all the MacPorts mysql ports simultaneously. mysql55-server has the following notes: If this is a new install you might want to run: $ sudo -u _mysql /opt/local/lib/mysql55/bin/mysql_install_db
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 [mysqld] character-set-server=utf8 max_allowed_packet = 32M [mysqldump] default-character-set=utf8 [mysql] default-character-set=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'