MySQL社区

 找回密码
 注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

搜索
查看: 4989|回复: 4
打印 上一主题 下一主题

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

[复制链接]
跳转到指定楼层
1#
发表于 2010-10-21 11:54:17 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
我的 MYSQL 做服务器 WIN2003   ADSL(4M)宽带 CPU*2   4G内存
远程用户连接以后大概10分钟左右不操作的话就掉线 要查寻的时候就得重连接 怎么解决这样的问题让远程用户一直在线呢? 只有20个用户连接 但MYSQL进程里确有100多个进程 着是否正常呢 我的MY,IN I培植如下 请高手帮我优化一下多谢

[mysqld]
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
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友 微信微信
收藏收藏 分享淘帖 顶 踩
2#
发表于 2010-10-21 15:16:36 | 只看该作者
interactive_timeout     
wait_timeout
把这两个参数值调大,单位秒。
3#
 楼主| 发表于 2010-10-22 16:51:21 | 只看该作者
这2个值我已经调很大了 但是远程用户还是几分钟就掉线
如果在本机上用远程的参数登陆的话就不掉线
4#
发表于 2010-10-22 18:34:34 | 只看该作者
你的远程用户是用什么登陆的?
5#
发表于 2015-2-4 23:39:00 | 只看该作者
最后怎么解决的啊?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|申请友链|小黑屋|Archiver|手机版|MySQL社区 ( 京ICP备07012489号   
联系人:周生; 联系电话:13911732319

GMT+8, 2024-5-16 21:05 , Processed in 0.078258 second(s), 23 queries , Gzip On.

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表