| 
 | 
 
我的网站,是IIS+PHP+MYSQL的.  
在特定时间,数据库会将A表里的内容自动转移到B表,因为数据量不小,大概有一万多条.转移时服务器CPU占用很高,在60-80%  
在不考虑提升服务器性能的情况下,有没有办法解决这个问题?  
例如设置my.inf里的参数  
注明一下我的服务器情况:至强双四核X5405,8G内存  
 
现在的my.inf如下:  
[client]  
#password = your_password  
port=3306  
socket = /tmp/mysql.sock  
[mysql]  
default-character-set=latin1  
[mysqld]  
port=3306  
socket = /tmp/mysql.sock  
default-character-set=latin1  
default-storage-engine=MYISAM  
max_connections=204700  
query_cache_size=256M  
table_cache=4100  
tmp_table_size=256M  
thread_cache_size=150  
myisam_max_sort_file_size=100G  
myisam_max_extra_sort_file_size=100G  
myisam_sort_buffer_size=512M  
key_buffer_size=2024M  
read_buffer_size=20M  
read_rnd_buffer_size=256K  
sort_buffer_size=208K  
skip-innodb  
innodb_additional_mem_pool_size=2M  
innodb_flush_log_at_trx_commit=1  
innodb_log_buffer_size=1M  
innodb_buffer_pool_size=8M  
innodb_log_file_size=10M  
innodb_thread_concurrency=18 |   
 
 
 
 |