export PATH=${PATH}:/usr/local/mysql/bin
adsryen@adsryendeMacBook-Pro bin % whereis mysql
adsryen@adsryendeMacBook-Pro bin % which mysql
mysql not found
# mysql
export MYSQL_HOME=/usr/local/mysql
export PATH=$MYSQL_HOME/bin:$PATH
mysql -uroot -p
SET PASSWORD FOR 'root'@'localhost' = PASSWORD('新密码');