日期:2014-05-16  浏览次数:20661 次

mac配置修改mysql的密码
1)sudo mate ~/.bash_profile文件里添加mysql的path
export PATH=/usr/local/mysql/bin:$PATH

2)$source ~/.bash_profile

3)修改mysql密码
$mysqladmin -u root password

4)登录mysql
$mysql -u root -p

5)启动/停止开机启动中的mysql服务:

$sudo /Library/StartupItems/MySQL/MySQL start/stop