配置与 Kaspersky Security Center 14.2 配合使用的 MySQL x64 服务器
配置与 Kaspersky Security Center 14.2 配合使用的 MySQL x64 服务器
如果将 MySQL DBMS 用于 Kaspersky Security Center,请启用对 InnoDB 和 MEMORY 存储以及对 UTF-8 和 UCS-2 编码的支持。
my.ini 文件的推荐设置
要配置 my.ini 文件:
- 在文本编辑器中打开 my.ini 文件。
- 将以下行添加到 my.ini 文件的
[mysqld]
部分中:sort_buffer_size=10M
join_buffer_size=20M
tmp_table_size=600M
max_heap_table_size=600M
key_buffer_size=200M
innodb_buffer_pool_size=
真实值不得少于期待 KAV 数据库大小的 80%
innodb_thread_concurrency=20
innodb_flush_log_at_trx_commit=0
(在大多数情况下,服务器使用小型事务处理)
innodb_lock_wait_timeout=300
max_allowed_packet=32M
max_connections=151
max_prepared_stmt_count=12800
table_open_cache=60000
table_open_cache_instances=4
table_definition_cache=60000
请注意,在
innodb_buffer_pool_size
值中指定的内存将在服务器启动时分配。如果数据库大小小于指定的缓冲区大小,则只分配所需的内存。已分配内存的实际大小大约比指定的缓冲区大小大 10%。有关详细信息,请参阅 MySQL 文档。建议使用参数值
innodb_flush_log_at_trx_commit = 0
,因为值“1”或“2”会对 MySQL 的运行速度产生负面影响。
Did you find this article helpful?
What can we do better?
Thank you for your feedback! You're helping us improve.
Thank you for your feedback! You're helping us improve.