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;