docker mysql无法远程连接问题

docker run --name mysql01 -e MYSQL_ROOT_PASSWORD=123456 -d mysql    
docker exec -it mysql01 bash
mysql -u root -p
select host,user,plugin,authentication_string from mysql.user;
ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY 'root';
select host,user,plugin,authentication_string from mysql.user;
Last modification:March 18th, 2020 at 03:46 pm
If you think my article is useful to you, please feel free to appreciate

Leave a Comment