MacOS 10.10, updated macro ports. I want to get mysql 5.6 on port 3306.
1) Installation
port install mysql56-server mysql56
sets mysql56@5.6.22 _0, after that
which mysql
or
which mysql56
returns nothing.
So the first question is: where is the mysql client located?
2) Configuration
Installation script suggests doing
sudo -u _mysql /opt/local/lib/mysql56/bin/mysql_install_db
then
/opt/local/lib/mysql56/bin/mysqladmin -u root password 'new-password'
which requests the server to start, and I start it with
cd /opt/local ; /opt/local/lib/mysql56/bin/mysqld_safe &
then mysqladmin complains about the socket, and I comment on --skip-networking in / opt / local / etc / mysql 56 / macports-default.cnf, after which the command goes fine. 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 kinda stuck. Any suggestions?
source share