1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
| [mysqld]
bind-address = 0.0.0.0
#mysql端口号设置
port = 3307
#basedir(刚创建的data文件夹目录) 和 datadir视自己情况而定
basedir=D:\Program Files\mysqls\mysql-5.7.21-winx64
datadir=D:\Program Files\mysqls\mysql-5.7.21-winx64\data\
max_connections=1000
character_set_server = utf8
#mysql7
sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER
#mysql8
#sql_mode=STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION
[client]
default-character-set=utf8
[mysql]
default-character-set=utf8
|