1,拷贝;
python
docker cp mysql01:/etc/mysql .
2,修改conf.d和mysql.conf.d文件
3, vim mysql/my.cnf
4,拷贝并替换my.cnf文件

5,mysql镜像重启命令:
python
docker exec -it mysql01 -uroot -p000000

6,查看字符集是否更改成功:
python
show variables like '%character%';

7,测试pycharm连接mysql:
python
alter user 'root'@'%' identified with mysql_native_password by '000000' ;
