1.mysql
mysql:
ufw status
docker exec -it mysql /bin/bash
mysql -u root -p
123456
CREATE USER ‘root‘@‘%‘ IDENTIFIED BY ‘123456‘;
alter user ‘root‘@‘%‘ identified with mysql_native_password by ‘123456‘;
原文:https://www.cnblogs.com/zwei1121/p/12652477.html