方法1: 运行MySQL 5.7 Command Line Client,输入老的密码: use mysql: update user set authentication_string=password('test1234') where user='root'; 方法2: 运行MySQL 5.7 Command Line Client,输入老的密码: set password=password('newpassword'); 方法3: alter user root@'localhost'…