[mysqld]
user=root
datadir=/usr/local/mysql/data
basedir=/usr/local/mysql
port=3306
##最大连接数
max_connections=96
max_connect_errors=16
character-set-server=utf8
default-storage-engine=INNODB
default_authentication_plugin=mysql_native_password
lower_case_table_names=1
group_concat_max_len=102400
default-time-zone ='+8:00'
sql_mode ='NO_AUTO_VALUE_ON_ZERO,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION,PIPES_AS_CONCAT,ANSI_QUOTES'
log-bin="你的path"
binlog-format=ROW
log-bin-index="你的path"
binlog_cache_size=32m
max_binlog_cache_size=256m
max_binlog_size=256m
validate_password_policy=1
validate_password_length=8
validate_password_number_count=1
validate_password_mixed_case_count=1
validate_password_special_char_count=1
##default_password_lifetime=0密码永不过期
default_password_lifetime=0
connection_control_min_connection_delay = 60000
connection_control_max_connection_delay = 1800000
connection_control_failed_connections_threshold = 30
[mysql]
default-character-set=utf8
[client]
port=3306
default-character-set=utf8
Mysql my.cnf配置详情
最新推荐文章于 2024-07-04 15:04:39 发布
该文详细列出了一个MySQL服务器的配置文件内容,包括用户(root)、数据目录、端口设置、最大连接数、字符集、时间区以及日志binlog的相关参数,如binlog_format、binlog_cache_size等。此外,还涉及了密码验证策略和连接控制,确保服务器的安全性和稳定性。
摘要由CSDN通过智能技术生成