qq41156210 发表于 2010-10-21 11:54:17

远程用户连接以后大概10分钟左右不操作的话就掉线

我的 MYSQL 做服务器 WIN2003   ADSL(4M)宽带 CPU*2   4G内存
远程用户连接以后大概10分钟左右不操作的话就掉线 要查寻的时候就得重连接 怎么解决这样的问题让远程用户一直在线呢? 只有20个用户连接 但MYSQL进程里确有100多个进程 着是否正常呢 我的MY,IN I培植如下 请高手帮我优化一下多谢


wait-timeout = 10000
skip-name-resolve
skip-grant-tables
# The TCP/IP Port the MySQL Server will listen on
max_connections=1510
query_cache_size=120M
table_cache=3020
tmp_table_size=120M
thread_cache_size=64
myisam_max_sort_file_size=100G
myisam_sort_buffer_size=64M
key_buffer_size=128M
read_buffer_size=4M
read_rnd_buffer_size=10M
sort_buffer_size=120M
#*** INNODB Specific options ***

# Use this option if you have a MySQL server with InnoDB support enabled
# but you do not plan to use it. This will save memory and disk space
# and speed up some things.
#skip-innodb

# Additional memory pool that is used by InnoDB to store metadata
# information.If InnoDB requires more memory for this purpose it will
# start to allocate it from the OS.As this is fast enough on most
# recent operating systems, you normally do not need to change this
# value. SHOW INNODB STATUS will display the current amount used.
innodb_additional_mem_pool_size=10M
innodb_flush_log_at_trx_commit=1
innodb_log_buffer_size=4M
innodb_buffer_pool_size=400M
innodb_log_file_size=38M
innodb_thread_concurrency=8

kider 发表于 2010-10-21 15:16:36

interactive_timeout   
wait_timeout
把这两个参数值调大,单位秒。

qq41156210 发表于 2010-10-22 16:51:21

这2个值我已经调很大了 但是远程用户还是几分钟就掉线如果在本机上用远程的参数登陆的话就不掉线

kider 发表于 2010-10-22 18:34:34

你的远程用户是用什么登陆的?
页: [1]
查看完整版本: 远程用户连接以后大概10分钟左右不操作的话就掉线