在安装完mysql后 会让你 重置密码 在网上看了好几种 方法都会 报错语法错误, 后面发现直接修改密码就行,一开始 的密码只是临时的. alter user user() identified by "root"; 成功!