Ref: http://dev.mysql.com/doc/refman/5.7/en/
(1) Download mysql dmg pkg from https://dev.mysql.com/downloads/mysql/
(2) Run mysql through system preference.
(3) bashprofile set
alias mysql=/usr/local/mysql/bin/mysql
alias mysqladmin=/usr/local/mysql/bin/mysqladmin
(3) login in mysql
mysql -u root -p
(4)
Rest password:
SET PASSWORD = PASSWORD('12345');