前言:mysql8相对于mysql5.7的一些不同之处 mysql8更改登录密码 单引号 alter user 'root'@'localhost' identified with mysql_native_password by '123456'; flush privileges;