MacOS 10.10, up-to-date macports. I want to get mysql 5.6 on port 3306.
1) Installing
port install mysql56-server mysql56
installs mysql56@5.6.22_0, after that
which mysql
or
which mysql56
returns nothing.
So first question is where is mysql client?
2) Configuring
Installation script suggests to 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 for running server and I start it by
cd /opt/local ; /opt/local/lib/mysql56/bin/mysqld_safe &
then mysqladmin complains about socket and I comment --skip-networking in /opt/local/etc/mysql56/macports-default.cnf and after that 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' is not allowed to connect to this MySQL server'
I really don't know what to do here without mysql client. And I'm kind of stuck. Any suggestions?