MySQL 5.7 设置密码

ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY 'your_password';

flush privileges;