记录mysql

用于记录自己的mysql学习。


1:当update一条语句大于8000多字节时,需要修改Mysql 配置属性,把表属性改为COMPRESSED,然后mysql.ini配置文件修改(有些是UTF8通用的):

[client]
port=3307


[mysql]
default-character-set=utf8


[mysqld]
port=3307


basedir="C:/Program Files (x86)/MySQL/MySQL Server 5.5/"


datadir="C:/ProgramData/MySQL/MySQL Server 5.5/Data/"


character-set-server=utf8


default-storage-engine=INNODB


sql-mode="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"


max_connections=100


query_cache_size=64M


table_cache=256


tmp_table_size=35M


back_log = 128


interactive_timeout = 604800
lower_case_table_names=0
max_allowed_packet=16M
#************************ MyISAM Specific options ************************


thread_cache_size=8


myisam_max_sort_file_size=100G


myisam_sort_buffer_size=69M


key_buffer_size=55M


read_buffer_size=64K
read_rnd_buffer_size=256K


sort_buffer_size=256K




#************************ INNODB Specific options ************************


innodb_buffer_pool_size=1000M


innodb_flush_log_at_trx_commit=2


innodb_log_buffer_size=8M


innodb_additional_mem_pool_size=20M


innodb_thread_concurrency=8


innodb_log_file_size=54M


innodb-file-per-table = 1
innodb_file_format = Barracuda


2:

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值