Docker操作MySQL
1,拷贝;
docker cp mysql01:/etc/mysql .
2,修改conf.d和mysql.conf.d文件
3, vim mysql/my.cnf
4,拷贝并替换my.cnf文件
5,mysql镜像重启命令:
docker exec -it mysql01 -uroot -p000000
6,查看字符集是否更改成功:
show variables like '%character%';
7,测试pycharm连接mysql:
alter user 'root'@'%' identified with mysql_native_password by '000000' ;