【Mysql】 my.ini配置一例
2016-05-16 14:22
399 查看
#Foradviceonhowtochangesettingspleasesee
#http://dev.mysql.com/doc/refman/5.6/en/server-configuration-defaults.html#***DONOTEDITTHISFILE.It'satemplatewhichwillbecopiedtothe
#***defaultlocationduringinstall,andwillbereplacedifyou
#***upgradetoanewerversionofMySQL.
[client]
default-character-set=utf8
[mysql]
default-character-set=utf8
[mysqld]
character_set_server=utf8
init_connect='SETNAMESutf8'
#Removeleading#andsettotheamountofRAMforthemostimportantdata
#cacheinMySQL.Startat70%oftotalRAMfordedicatedserver,else10%.
#innodb_buffer_pool_size=128M
#Removeleading#toturnonaveryimportantdataintegrityoption:logging
#changestothebinarylogbetweenbackups.
#log_bin
#Thesearecommonlyset,removethe#andsetasrequired.
basedir=D:\mysql-advanced-5.6.25-winx64
datadir=D:\mysql-advanced-5.6.25-winx64\data
#port=.....
#server_id=.....
#Removeleading#tosetoptionsmainlyusefulforreportingservers.
#TheserverdefaultsarefasterfortransactionsandfastSELECTs.
#Adjustsizesasneeded,experimenttofindtheoptimalvalues.
#join_buffer_size=128M
#sort_buffer_size=2M
#read_rnd_buffer_size=2M
sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES
lower_case_table_names=0
group_concat_max_len=-1
#
#***defaultlocationduringinstall,andwillbereplacedifyou
#***upgradetoanewerversionofMySQL.
[client]
default-character-set=utf8
[mysql]
default-character-set=utf8
[mysqld]
character_set_server=utf8
init_connect='SETNAMESutf8'
#Removeleading#andsettotheamountofRAMforthemostimportantdata
#cacheinMySQL.Startat70%oftotalRAMfordedicatedserver,else10%.
#innodb_buffer_pool_size=128M
#Removeleading#toturnonaveryimportantdataintegrityoption:logging
#changestothebinarylogbetweenbackups.
#log_bin
#Thesearecommonlyset,removethe#andsetasrequired.
basedir=D:\mysql-advanced-5.6.25-winx64
datadir=D:\mysql-advanced-5.6.25-winx64\data
#port=.....
#server_id=.....
#Removeleading#tosetoptionsmainlyusefulforreportingservers.
#TheserverdefaultsarefasterfortransactionsandfastSELECTs.
#Adjustsizesasneeded,experimenttofindtheoptimalvalues.
#join_buffer_size=128M
#sort_buffer_size=2M
#read_rnd_buffer_size=2M
sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES
lower_case_table_names=0
group_concat_max_len=-1
lower_case_table_names:表名区分大小写
log-bin:开启日志记录,可用于数据恢复
group_concat_max_len:设置group_concat方法的最大字符限制,设为-1则代表最大(4294967295)
相关文章推荐
- MySQL性能优化必备25条
- MySQL——InnoDB行锁
- You have an error in your SQL syntax; check the manual that corresponds to your MySQL 完美解决
- mysql 视图基本操作
- Windows系统下MySQL解压版添加到系统服务
- mysql之视图详解
- 比较全面的MySQL优化参考
- mysql 为某一数据库下所有表中添加相同字段
- 程序猿都该知道的MySQL秘籍
- Mysql数据库事务在jdbc中的用法
- 用mycat做读写分离:基于 MySQL主从复制
- MySQL客户端程序及一些使用小工具介绍
- mysql的启动
- 数据库查询优化——Mysql索引
- 数据库查询优化——Mysql索引
- 数据库查询优化——Mysql索引
- 数据库查询优化——Mysql索引
- jdbc的增删查改(mysql)
- mysql 备份
- 【MySql性能优化二】利用explain进行查询和分析sql语句