1.进入docker:docker exec -it [mysql container name] bash
2.进入mysql:mysql -u root -p ,输入mysql密码
3.输入use mysql ,回车
4.输入:alter user 'root'@'%' identified with mysql_native_password by '新密码';