mysql 数据库中my.ini的优化 2G内存针对站多 抗压型的设置

物理内存越大,设置就越大.认为2402,调到512-1024最佳
innodb_additional_mem_pool_size=4M 认为2M
innodb_flush_log_at_trx_commit=1
(设置为0就是等到innodb_log_buffer_size列队满后再统一储存,认为1)
innodb_log_buffer_size=2M 认为1M
innodb_thread_concurrency=8 你的服务器cpu有几个就设置为几,建议用认一般为8
key_buffer_size=256M 认为218 调到128最佳
tmp_table_size=64M 认为16M 调到64-256最挂
read_buffer_size=4M 认为64K
read_rnd_buffer_size=16M 认为256K
sort_buffer_size=32M 认为256K
max_connections=1024 认为1210
thread_cache_size=120 认为60
query_cache_size=64M

相关文章

SELECT a.*,b.dp_name,c.pa_name,fm_name=(CASE WHEN a.fm_n...
if not exists(select name from syscolumns where name=&am...
select a.*,pano=a.pa_no,b.pa_name,f.dp_name,e.fw_state_n...
要在 SQL Server 2019 中设置定时自动重启,可以使用 Window...
您收到的错误消息表明数据库 'EastRiver' 的...
首先我需要查询出需要使用SQL Server Profiler跟踪的数据库标...