set-variable = max_connections=1024
set-variable = interactive_timeout = 300
set-variable = wait_timeout = 30
set-variable = slow_query_log = 1
set-variable = expire_logs_days = 7

解决方案 »

  1.   

    [code=INIFile][mysqld]
    max_connections=1024
    interactive_timeout=300
    wait_timeout=30
    expire_logs_days=7[/code]slow_query_log 好象没有
      

  2.   

    这些参数手册中都有介绍。expire_logs_days Command Line Format --expire_logs_days=# 
    Config File Format expire_logs_days 
    Option Sets Variable Yes, expire_logs_days 
    Variable Name expire_logs_days 
    Variable Scope Global 
    Dynamic Variable Yes 
    Value Set  Type numeric 
    Default 0 
    Range 0-99 
     The number of days for automatic binary log removal. The default is 0, which means “no automatic removal.” Possible removals happen at startup and at binary log rotation. 
      

  3.   

    slow_launch_time 这个参数究竟是啥意思?跟long_query_time有关系吗?
      

  4.   

    MySQL官方文档 http://dev.mysql.com/doc/refman/5.1/zh/index.html
    slow_launch_time Command Line Format --slow_launch_time=# 
    Config File Format slow_launch_time 
    Option Sets Variable Yes, slow_launch_time 
    Variable Name slow_launch_time 
    Variable Scope Global 
    Dynamic Variable Yes 
    Value Set  Type numeric 
    Default 2 
     If creating a thread takes longer than this many seconds, the server increments the Slow_launch_threads status variable.