Telnet can not solve Docker in MySQL

step:

Mysql into the container
login mysql
grant remote access privileges
to refresh the permissions and exit

Command Reference:

docker exec -it [mysql] /bin/bash
mysql -u root -p
ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY 'root';
flush privileges; 
exit;

Guess you like

Origin www.cnblogs.com/yulongcode/p/12161595.html