我windows 2003 服务器安装的mysql 
经常报如下错误:Changed limits: max_open_files: 2048  max_connections: 2038  table_cache: 64我在my.ini 中设置了max_open_files=3048  
max_connections=3038  
table_cache=364分别调大了这些数据,为什么重启mysql后就启不来
而且mysql的最大连接数,无论配置多大,最大的数据就是2038个
我想知道如何修改这些限制的参数,

解决方案 »

  1.   

    你试下把 my.ini 的内容替换成my-large.ini 看有没有效果。
      

  2.   

    max_open_files=3048  
    max_connections=3038  
    table_cache=364
    因为这些超过了mysql的最大默认值,所以启动不了.max_connections的最大数与open_files_limit这个参数有关,如果你要将max_connections设大,就要先将open_files_limit这个参数设大,试试像下面这样改,再启动mysql看看行不行
    [mysqld]
    open_files_limit=3048  
    max_connections=3038  
    table_cache=364我试过了,虽然这样改了,但是open_files_limit最大只能去到2048,我记得这好像与你的操作系统有关,如何修改操作系统来增大open_files_limit我就无能为力了.
      

  3.   

    show variables;中,为什么没有参数max_open_files的值啊open_files_limit 修改了值,的确可以再加大max_connections,值啊
    但是max_open_files的值如何加大啊,