报错如下,偶尔报错:
2012-12-13 07:42:45 CRIT (2): Exception caught(sh-21-webs2 10.172.10.1):{{{ exception 'Exception' with message 'mysqlerrno(2003): Can't connect to MySQL server on 'm3306.db.com.cn' (4).' in /data/data1/www/program_include/general/systemdriver/mysql5/mysql5_driver.php:91 Stack trace: #0自己使用数据库的配置连接数据库是正常的,可以访问的,在网上看到说可能和back_log设置有关,服务器的back_log设置为100,根据数据库的检测,最高的进程也不到100,为什么会报这个错,出了什么事情呢?

解决方案 »

  1.   

    mysql是用cacti监控的,从监控图上来看,processlist没有超过我的max_connections设置,我的max_connections=1024,cacti图上最大才是70,而是偶尔会报错
      

  2.   

    mysql是用cacti监控的,从监控图上来看,processlist没有超过我的max_connections设置,我的max_connections=1024,cacti图上最大才是70,而是偶尔会报错
    以下是我的设置:
    mysql> show variables like '%connections%';
    +----------------------+-------+
    | Variable_name        | Value |
    +----------------------+-------+
    | max_connections      | 1024  |
    | max_user_connections | 512   |
    +----------------------+-------+
    2 rows in set (0.00 sec)