Home  >  Article  >  Database  >  mysql数据库选项设置(解决repair with keycache问题)_MySQL

mysql数据库选项设置(解决repair with keycache问题)_MySQL

WBOY
WBOYOriginal
2016-06-01 13:42:341526browse

bitsCN.com
mysql数据库选项设置(解决repair with keycache问题) 今天向mysql导入一个数据库备份文件,运行一段时间后发现停在一个地方很长时间,用workbench监控了一下,发现repair with keycache这句很慢,上网查了一些,主要是对两个参数进行优化设置myisam_max_sort_file_size和myisam_sort_buffer_size。这两个参数呃默认值是 
Java代码  myisam_max_sort_file_size=2G  myisam_sort_buffer_size=8M     修改配置文件改为(如果没有这两个参数则加上) Java代码  myisam_max_sort_file_size=10G  myisam_sort_buffer_size=64M   之后导入程序运行比先前快多了,没有再出现repair with keycache这句。 如果改为还出现则继续调大这两个参数值。   作者 lwjlaser bitsCN.com

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn