[client]
# 设置mysql客户端默认字符集
# default-character-set=utf8
bind-address = 0.0.0.0
[mysqld]
#sql_mode="NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION"
sql_mode="STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION"
# 设置3306端口
port = 3306
# 设置mysql的安装目录
#basedir=D:\\software\\Mysql\\mysql-8.0.28-winx64
# 设置 mysql数据库的数据的存放目录,MySQL 8+ 不需要以下配置,系统自己生成即可,否则有可能报错
# datadir=D:\\software\\Mysql\\mysql-8.0.28-winx64
# 允许最大连接数
max_connections=20
# 服务端使用的字符集默认为8比特编码的latin1字符集
character-set-server=utf8
# 创建新表时将使用的默认存储引擎
default-storage-engine=INNODB
mysql_native_password=ON
general_log = 1
general_log_file = F:\BaiduNetdiskDownload\mysql-8.4.0-winx64\mysql.log
slow_query_log = 1
#slow_query_log_file = F:\BaiduNetdiskDownload\mysql-8.4.0-winx64\mysql-slow.log
#long_query_time = 2 -- 查询超过 2 秒的被记录
#log-bin = D:\\software\\Mysql\\mysql-8.0.28-winx64