mysql combat_mysql下my.conf配置详解

[mysqld]

back_log = 300 #back_log 是操作系统在监听队列中所能保持的连接数

lower_case_table_names = 1 #忽略大小写

max_connections = 3000 #MySQL 服务所允许的同时会话数的上限

max_connect_errors = 30 # 每个客户端连接最大的错误允许数量

max_allowed_packet = 32M # 服务所能处理的请求包的最大大小以及服务所能处理的最大的请求大小

binlog_cache_size = 4M # 在一个事务中binlog为了记录SQL状态所持有的cache大小

max_heap_table_size = 128M # 独立的内存表所允许的最大容量

sort_buffer_size = 16M # 排序缓冲被用来处理类似ORDER BY以及GROUP BY队列所引起的排序

thread_cache_size = 16 # 我们在cache中保留多少线程用于重用

join_buffer_size = 16M # 此缓冲被使用来优化全联合(full JOINs 不带索引的联合).

query_cache_size = 128M # 查询缓冲常被用来缓冲 SELECT 的结果并且在下一次同样查询的时候不再执行直接返回结果.

query_cache_limit = 4M # 只有小于此设定值的结果才会被缓冲

thread_stack = 512K # 线程使用的堆大小. 此容量的内存在每次连接时被预留.

tmp_table_size = 128M # 内部(内存中)临时表的最大大小

log-bin=mysql-bin # 打开二进制日志功能.

key_buffer_size = 128M # 关键词缓冲的大小, 一般用来缓冲MyISAM表的索引块.

innodb_additional_mem_pool_size = 64M # 附加的内存池被InnoDB用来保存 metadata 信息

innodb_buffer_pool_size = 6G # InnoDB使用一个缓冲池来保存索引和原始数据, 不像 MyISAM.

innodb_data_file_path = ibdata1:10M:autoextend # InnoDB 将数据保存在一个或者多个数据文件中成为表空间.

innodb_file_io_threads = 4 # 用来同步IO操作的IO线程的数量. This value is

innodb_thread_concurrency = 16 # 在InnoDb核心内的允许线程数量.

innodb_flush_log_at_trx_commit = 2 # 如果设置为1 ,InnoDB会在每次提交后刷新(fsync)事务日志到磁盘上

innodb_log_buffer_size = 16M # 用来缓冲日志数据的缓冲区的大小.

innodb_log_file_size = 512M # 在日志组中每个日志文件的大小.

innodb_log_files_in_group = 3 # 在日志组中的文件总数.

innodb_max_dirty_pages_pct = 90 # 在InnoDB缓冲池中最大允许的脏页面的比例.

innodb_lock_wait_timeout = 120 # 在被回滚前,一个InnoDB的事务应该等待一个锁被批准多久.

sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES

[mysqld_safe]

# 增加每个进程的可打开文件数量.

# 警告: 确认你已经将全系统限制设定的足够高!

# 打开大量表需要将此值设大

open-files-limit = 8192

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
void Show_Extend() { //cleardevice(); Date_IMAGE_Init(); Play = { 400,350,169,52, BLACK,"简单模式" }; Introduce = { 400, 404, 169, 52, BLACK, "困难模式" }; Upgrade_of_Combat = { 400, 456, 169, 52,BLACK, "炼狱模式" }; while(1) { // 贴图 & 绘制按键 DrawAlpha_Transparent(&img_tmp_Extend, 0, 0, &img_Extend); DrawAlpha_Transparent(&img_tmp_Extend, Play.x, Play.y, &img_Extend_Button); DrawAlpha_Transparent(&img_tmp_Extend, Introduce.x, Introduce.y, &img_Extend_Button); DrawAlpha_Transparent(&img_tmp_Extend, Upgrade_of_Combat.x, Upgrade_of_Combat.y, &img_Extend_Button); DrawAlpha_Transparent(&img_tmp_Extend, 100, 0, &Plane_Game); putimage(0, 0, &img_tmp_Extend); DrawImage_BUTTON(&Play); DrawImage_BUTTON(&Upgrade_of_Combat); DrawImage_BUTTON(&Introduce); FlushBatchDraw(); // 按键判断 if (MouseHit()) { MOUSEMSG msg = GetMouseMsg(); if (Switch_Buton(&Play, msg.x, msg.y)) Play.color = RGB(234, 54, 128); else Play.color = BLACK; if (Switch_Buton(&Upgrade_of_Combat, msg.x, msg.y)) Upgrade_of_Combat.color = RGB(234, 54, 128); else Upgrade_of_Combat.color = BLACK; if (Switch_Buton(&Introduce, msg.x, msg.y)) Introduce.color = RGB(234, 54, 128); else Introduce.color = BLACK; switch (msg.uMsg) { case WM_LBUTTONDOWN: if (Switch_Buton(&Play, msg.x, msg.y)) // 简单模式 { enemya_num = 12; v_enemyb = 3; v_enemyc = 5; BOSS_Damage = 5; BOSS_num = 12; goto next; } if (Switch_Buton(&Upgrade_of_Combat, msg.x, msg.y)) // 困难模式 { enemya_num = 15; v_enemyb = 6; v_enemyc = 8; BOSS_Damage = 8; BOSS_num = 15; goto next; } if (Switch_Buton(&Introduce, msg.x, msg.y)) // 炼狱模式 { enemya_num = 20; v_enemyb = 9; v_enemyc = 10; BOSS_Damage = 15; BOSS_num = 20; goto next; } } } } next: Init_Button(); f[0] = 0; cleardevice(); }请为上述程序画出流程图
05-24
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值