mysql的ini介绍_MySQL 配置文件my.ini 介绍

# MySQL Server Instance Configuration File # ---------------------------------------------------------------------- # Generated by the MySQL Server Instance Configuration Wizard # # # Installation Instructions # ----------------------------

# 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 服务同时处理的数据库这篇文章主要介绍了MySQL配置文件my.cnf参数优化和中文详解,非常详细的用中文注释了各个参数的作用以及建议值,需要的朋友可以参考下 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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值