Docker创建MySQL

docker pull mysql
docker images
docker run -p 3307:3306 --name mysql02 -e MYSQL_ROOT_PASSWORD=mima -d mysql
docker ps
docker exec -it 110271a717b3 bash
mysql -uroot -p
alter user ‘root‘@‘%‘ IDENTIFIED WITH mysql_native_password BY ‘root‘;
alter user ‘root‘@‘%‘ identified by ‘mima‘;
flush privileges;

Docker创建MySQL

上一篇:Oracle中Translate函数的使用


下一篇:Mysql MVCC