我是在我的笔记本上运行的mysql环境(windows10系统)用作开发
镜像地址:https://hub.docker.com/_/mysql
docker pull mysql:5.7.41-debian
D:\Docker\data\mysql
docker run --name mysql -v D:\Docker\data\mysql:/var/lib/mysql -p 3306:3306 -e MYSQL_ROOT_PASSWORD=123456 -d mysql:5.7.41-debian
docker@default:~$ cd /home/ljaer/mysql/
docker@default:/home/ljaer/mysql$ ls
auto.cnf client-cert.pem ib_logfile0 ibtmp1 private_key.pem server-key.pem
ca-key.pem client-key.pem ib_logfile1 mysql/ public_key.pem sys/
ca.pem ib_buffer_pool ibdata1 performance_schema/ server-cert.pem
docker stop mysql
进入MySQL
docker exec -it [id/name] /bin/bash
/etc/mysql/mysql.conf.d/mysqld.cnf
参考:https://blog.csdn.net/m0_67390963/article/details/124171165
正在学习Go语言的PHP程序员。