docker pull mysql:5.7.25
mkdir -p $HOME/docker/mysql57
docker run -p 3306:3306 --name mysql5725
-v $PWD/conf:/etc/mysql
-v $PWD/logs:/var/log/mysql
-v $PWD/data:/var/lib/mysql
-e MYSQL_ROOT_PASSWORD=123456
-d mysql:5.7.25
--character-set-server=utf8mb4
--collation-server=utf8mb4_unicode_ci
docker ps
docker logs -f mysql5725
docker exec -it mysql5725 /bin/bash
mysql -u root -p
netstat -anvf inet| grep 3306
docker stop mysql5725
docker start mysql5725