`
zhangwei_david
  • 浏览: 470773 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
社区版块
存档分类
最新评论

MySQL 配置文件my.ini 介绍

 
阅读更多

# MySQL 客户端参数
[client]
no-beep

# pipe
# socket=mysql

# 端口号
port=3306

# 字符编码

[mysql]

default-character-set=utf8


# SERVER SECTION
# ----------------------------------------------------------------------

[mysqld]

# The next three options are mutually exclusive to SERVER_PORT below.
# skip-networking
# enable-named-pipe
# The Pipe the MySQL Server will use
# socket=mysql

# The TCP/IP Port the MySQL Server will listen on
port=3306

# 安装路径
basedir="H:/Program Files (x86)/MySQL/MySQL Server 5.6/"

# 数据库文件路径
datadir="H:/Program Files (x86)/MySQL/MySQL Server 5.6/data\"


# 数据库字符编码
character-set-server=utf8

# 数据库默认的存储引擎
default-storage-engine=INNODB

# Set the SQL mode to strict
sql-mode="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"

# Enable Windows Authentication
# plugin-load=authentication_windows.dll

# 日志配置.

#日志是以文件的方式输出
log-output=FILE
general-log=0

#日志名称
general_log_file="ZHANGWEI.log"
slow-query-log=1
slow_query_log_file="ZHANGWEI-slow.log"
long_query_time=10

# Binary Logging.
# log-bin

# Error Logging.
log-error="ZHANGWEI.err"


# MySQL 服务同时处理的数据库连接的最大数量.
max_connections=100


# 允许存放在查询缓存区的查询结果最大长度
query_cache_size=0

# 同时打卡数据表的数量
table_open_cache=2000

# 临时数据表的最大长度
tmp_table_size=57M

# 服务线程缓存数量
thread_cache_size=9

#*** MyISAM指定参数
# 当重建索引时 MySQL允许使用的临时文件夹大小
myisam_max_sort_file_size=100G

#MySQL 重建索引以及 load data infile 到一个空表时缓冲区的大小
myisam_sort_buffer_size=113M

#关键字缓冲区大小
key_buffer_size=8M

#进行全表扫描的缓冲区大小
read_buffer_size=64K

#排好序的数据存储缓冲区大小
read_rnd_buffer_size=256K

#排序缓冲区大小
sort_buffer_size=256K

 

#*** INNODB 指定参数***


innodb_additional_mem_pool_size=8M


innodb_flush_log_at_trx_commit=1


innodb_log_buffer_size=5M


innodb_buffer_pool_size=349M

#
innodb_log_file_size=48M


innodb_thread_concurrency=9


innodb_autoextend_increment=64M


innodb_buffer_pool_instances=8


innodb_concurrency_tickets=5000


innodb_old_blocks_time=1000


innodb_open_files=300


innodb_stats_on_metadata=0


innodb_file_per_table=1


innodb_checksum_algorithm=0


back_log=70


flush_time=0


join_buffer_size=256K

.
max_allowed_packet=4M


open_files_limit=4110


query_cache_type=0


sort_buffer_size=256K


table_definition_cache=1400


binlog_row_event_max_size=8K


sync_master_info=10000


sync_relay_log=10000


sync_relay_log_info=10000

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics