docker mysql

docker mysql

docker run -p 3306:3306 --name mysql -e MYSQL_ROOT_PASSWORD=***** -d mysql:8.0.20
alter user ‘root’@‘%’ identified with mysql_native_password by ‘*****’;
flush privileges;
select host,user,plugin from mysql.user;

你可能感兴趣的:(docker,docker,mysql,容器)