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'
Failed to install mysql55-server: no destroot found at: /opt/local/var/mac\ ports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_\ ports_databases_mysql55/mysql55-server/work/destroot
sudo port mkdir -p /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_databases_mysql55/mysql55-server/work/destroot