1)
docker exec -it mysqlserver bash
2)
mysql -uroot -p
7、开启远程访问权限
1)
use mysql;
2)
select host,user from user;
3)
ALTER USER 'root'@'%' IDENTIFIED BY 'tiger' password expire never;
4)
ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY '123456';
5)
flush privileges;