一、MAC Mysql安装
1、下载dmg安装
从http://dev.mysql.com/downloads/mysql/下载dmg安装
二、Mysql密码修改
1、通过mysql -uroot -ppwd进入到命令行,会发现任何操作都会出现ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this statement。也就是必须立刻修改密码。
修改密码方法:
ALTER USER 'root'@'localhost' IDENTIFIED BY 'pwd' ;
update mysql.user set authentication_string=PASSWORD('pwd') where user='root' and host='localhost';
flush privileges;
修改完毕