修改root用户的密码:
/*登录mysql*/
mysql -uroot -p123
登陆之后,它会提示你
ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this statement.
然后你输入以下
SET PASSWORD = PASSWORD('123');
这就是将安装好时候的密码,修改为123