啊 好傻啊。 昨天安装完 mysql 没设置root 密码。 结果 sudo mysql -u root 就进去了。 use mysql; select authentication_string , user from user; root 的密码就是空的