docker exec -it mysql5.7 bash
mysql -uroot -p
use mysql;
update user set host = '%' where user = 'root';
执行FLUSH PRIVILEGES;
FLUSH PRIVILEGES;