摘要:008-mysql5.7配置文件
docker
1 2
| docker run -p 53306:3306 --name mymysql57 -e MYSQL_ROOT_PASSWORD=123456 -d mysql:5.7 docker exec -it mymysql57 /bin/bash
|
进入docker后查看
没有 my.cnf,存在mysql
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
| ls /etc/mysql
cat /etc/mysql/my.cnf
cat /etc/mysql/mysql.cnf
ls /etc/mysql/conf.d/
cat /etc/mysql/conf.d/docker.cnf
cat /etc/mysql/conf.d/mysql.cnf
cat /etc/mysql/conf.d/mysqldump.cnf
ls /etc/mysql/mysql.conf.d/
cat /etc/mysql/mysql.conf.d/mysqld.cnf
|
故核心配置在: /etc/mysql/mysql.conf.d/mysqld.cnf