osx - Setup MySQL 5.6 with Macports -
macos 10.10, up-to-date macports. want mysql 5.6 on port 3306.
1) installing
port install mysql56-server mysql56 installs mysql56@5.6.22_0, after
which mysql or
which mysql56 returns nothing.
so first question mysql client?
2) configuring
installation script suggests do
sudo -u _mysql /opt/local/lib/mysql56/bin/mysql_install_db then
/opt/local/lib/mysql56/bin/mysqladmin -u root password 'new-password' which asks running server , start by
cd /opt/local ; /opt/local/lib/mysql56/bin/mysqld_safe & then mysqladmin complains socket , comment --skip-networking in /opt/local/etc/mysql56/macports-default.cnf , after command goes ok. then
/opt/local/lib/mysql56/bin/mysqladmin -u root -h bp.local password 'new-password' which returns
error: 'host '10.0.1.9' not allowed connect mysql server' i don't know here without mysql client. , i'm kind of stuck. suggestions?
macports installs mysql , derivatives in way don't conflict each other , can installed @ same time. includes putting mysql binary in non-standard paths. can locate binary using port contents mysql56 | grep -e '/s?bin/'. macports comes selection mechanism creates symlinks convenience in /opt/local/bin. make mysql 5.6 default, run sudo port select --set mysql mysql56.
to start server, can use macports' daemon control functions (that frontend launchd): sudo port load mysql56-server start server , ensure running after reboot, sudo port unload mysql56-server undo , stop server.
the --skip-networking default make running multiple mysql versions side-by-side possible. see port notes mysql56 more information.
you can connect macports' mysql using unix socket, although don't recall path top of head. i'm sure http://trac.macports.org/wiki/howto/mamp has them, though. connect local server, should use localhost or 127.0.0.1 instead of bp.local, apparently resolves private ip address , goes through ip stack of os, rather through loopback interface.
Comments
Post a Comment