object(QDB_Exception)#11 (8) {
  ["sql"]=>
  string(16) "CONNECT DATABASE"
  ["message":protected]=>
  string(92) "Lost connection to MySQL server at 'reading initial communication packet', system error: 111"
  ["string":"Exception":private]=>
  string(0) ""
  ["code":protected]=>
  int(2013)
  ["file":protected]=>
  string(58) "/var/www/dg-health/lib/qeephp/library/db/adapter/mysql.php"
  ["line":protected]=>
  int(77)
  ["trace":"Exception":private]=>
  array(13) {
    [0]=>
    array(6) {
      ["file"]=>
      string(50) "/var/www/dg-health/lib/qeephp/library/db/table.php"
      ["line"]=>
      int(440)
      ["function"]=>
      string(7) "connect"
      ["class"]=>
      string(17) "QDB_Adapter_Mysql"
      ["type"]=>
      string(2) "->"
      ["args"]=>
      array(0) {
      }
    }
    [1]=>
    array(6) {
      ["file"]=>
      string(50) "/var/www/dg-health/lib/qeephp/library/db/table.php"
      ["line"]=>
      int(476)
      ["function"]=>
      string(7) "setConn"
      ["class"]=>
      string(9) "QDB_Table"
      ["type"]=>
      string(2) "->"
      ["args"]=>
      array(1) {
        [0]=>
        object(QDB_Adapter_Mysql)#10 (23) {
          ["_bind_enabled":protected]=>
          bool(false)
          ["_dsn":protected]=>
          array(7) {
            ["driver"]=>
            string(5) "mysql"
            ["host"]=>
            string(9) "127.0.0.1"
            ["login"]=>
            string(4) "root"
            ["password"]=>
            string(7) "kingdee"
            ["database"]=>
            string(9) "shenboshi"
            ["charset"]=>
            string(4) "utf8"
            ["prefix"]=>
            NULL
          }
          ["_id":protected]=>
          string(42) "dbo_mysql_d8d14143a22d5a159fda5ffed27dade6"
          ["_schema":protected]=>
          string(9) "shenboshi"
          ["_fetch_mode":protected]=>
          int(2)
          ["_conn":protected]=>
          bool(false)
          ["_log_enabled":protected]=>
          bool(true)
          ["_last_err":protected]=>
          NULL
          ["_last_err_code":protected]=>
          NULL
          ["_insert_id":protected]=>
          NULL
          ["_trans_count":protected]=>
          int(0)
          ["_has_failed_query":protected]=>
          bool(false)
          ["_savepoints_stack":protected]=>
          array(0) {
          }
          ["_true_value":protected]=>
          int(1)
          ["_false_value":protected]=>
          int(0)
          ["_null_value":protected]=>
          string(4) "NULL"
          ["_timestamp_format":protected]=>
          string(11) "Y-m-d H:i:s"
          ["_param_style":protected]=>
          string(1) "?"
          ["_has_insert_id":protected]=>
          bool(true)
          ["_affected_rows_enabled":protected]=>
          bool(true)
          ["_transaction_enabled":protected]=>
          bool(true)
          ["_savepoint_enabled":protected]=>
          bool(false)
          ["_result_field_name_lower":protected]=>
          bool(false)
        }
      }
    }
    [2]=>
    array(6) {
      ["file"]=>
      string(50) "/var/www/dg-health/lib/qeephp/library/db/table.php"
      ["line"]=>
      int(459)
      ["function"]=>
      string(10) "_setupConn"
      ["class"]=>
      string(9) "QDB_Table"
      ["type"]=>
      string(2) "->"
      ["args"]=>
      array(0) {
      }
    }
    [3]=>
    array(6) {
      ["file"]=>
      string(50) "/var/www/dg-health/lib/qeephp/library/db/table.php"
      ["line"]=>
      int(368)
      ["function"]=>
      string(4) "init"
      ["class"]=>
      string(9) "QDB_Table"
      ["type"]=>
      string(2) "->"
      ["args"]=>
      array(0) {
      }
    }
    [4]=>
    array(6) {
      ["file"]=>
      string(63) "/var/www/dg-health/lib/qeephp/library/orm/activerecord/meta.php"
      ["line"]=>
      int(1319)
      ["function"]=>
      string(7) "columns"
      ["class"]=>
      string(9) "QDB_Table"
      ["type"]=>
      string(2) "->"
      ["args"]=>
      array(0) {
      }
    }
    [5]=>
    array(6) {
      ["file"]=>
      string(63) "/var/www/dg-health/lib/qeephp/library/orm/activerecord/meta.php"
      ["line"]=>
      int(242)
      ["function"]=>
      string(6) "_init1"
      ["class"]=>
      string(21) "QDB_ActiveRecord_Meta"
      ["type"]=>
      string(2) "->"
      ["args"]=>
      array(1) {
        [0]=>
        &string(13) "Table_Product"
      }
    }
    [6]=>
    array(6) {
      ["file"]=>
      string(63) "/var/www/dg-health/lib/qeephp/library/orm/activerecord/meta.php"
      ["line"]=>
      int(256)
      ["function"]=>
      string(11) "__construct"
      ["class"]=>
      string(21) "QDB_ActiveRecord_Meta"
      ["type"]=>
      string(2) "->"
      ["args"]=>
      array(1) {
        [0]=>
        &string(13) "Table_Product"
      }
    }
    [7]=>
    array(6) {
      ["file"]=>
      string(46) "/var/www/dg-health/app/model/table/product.php"
      ["line"]=>
      int(210)
      ["function"]=>
      string(8) "instance"
      ["class"]=>
      string(21) "QDB_ActiveRecord_Meta"
      ["type"]=>
      string(2) "::"
      ["args"]=>
      array(1) {
        [0]=>
        &string(13) "Table_Product"
      }
    }
    [8]=>
    array(6) {
      ["file"]=>
      string(53) "/var/www/dg-health/app/controller/shop_controller.php"
      ["line"]=>
      int(11)
      ["function"]=>
      string(4) "find"
      ["class"]=>
      string(13) "Table_Product"
      ["type"]=>
      string(2) "::"
      ["args"]=>
      array(2) {
        [0]=>
        &string(4) "id=?"
        [1]=>
        &string(1) "8"
      }
    }
    [9]=>
    array(4) {
      ["function"]=>
      string(10) "actionShow"
      ["class"]=>
      string(15) "Controller_Shop"
      ["type"]=>
      string(2) "->"
      ["args"]=>
      array(0) {
      }
    }
    [10]=>
    array(4) {
      ["file"]=>
      string(46) "/var/www/dg-health/app/controller/abstract.php"
      ["line"]=>
      int(63)
      ["function"]=>
      string(20) "call_user_func_array"
      ["args"]=>
      array(2) {
        [0]=>
        &array(2) {
          [0]=>
          object(Controller_Shop)#7 (7) {
            ["_userid":protected]=>
            NULL
            ["_user":protected]=>
            NULL
            ["_view":protected]=>
            array(1) {
              ["current_user"]=>
              NULL
            }
            ["_view_class":protected]=>
            string(16) "QView_Render_PHP"
            ["_viewname":protected]=>
            NULL
            ["_app":protected]=>
            object(MyApp)#1 (1) {
              ["_app_config":protected]=>
              array(12) {
                ["QEEPHP_DIR"]=>
                string(29) "/var/www/dg-health/lib/qeephp"
                ["APPID"]=>
                string(9) "shenboshi"
                ["RUN_MODE"]=>
                string(5) "devel"
                ["ROOT_DIR"]=>
                string(18) "/var/www/dg-health"
                ["PUBLIC_DIR"]=>
                string(26) "/var/www/dg-health/public/"
                ["APP_DIR"]=>
                string(22) "/var/www/dg-health/app"
                ["CONFIG_DIR"]=>
                string(25) "/var/www/dg-health/config"
                ["MODULE_DIR"]=>
                string(26) "/var/www/dg-health/modules"
                ["CONFIG_CACHE_BACKEND"]=>
                string(11) "QCache_File"
                ["CONFIG_CACHED"]=>
                bool(true)
                ["CONFIG_FILE_EXTNAME"]=>
                string(4) "yaml"
                ["CONFIG_CACHE_SETTINGS"]=>
                array(1) {
                  ["QCache_File"]=>
                  array(3) {
                    ["life_time"]=>
                    int(10)
                    ["serialize"]=>
                    bool(true)
                    ["cache_dir"]=>
                    string(36) "/var/www/dg-health/tmp/runtime_cache"
                  }
                }
              }
            }
            ["_context":protected]=>
            object(QContext)#3 (6) {
              ["module_name"]=>
              NULL
              ["namespace"]=>
              NULL
              ["controller_name"]=>
              string(4) "shop"
              ["action_name"]=>
              string(4) "show"
              ["_params":"QContext":private]=>
              array(0) {
              }
              ["_router":"QContext":private]=>
              object(QRouter)#4 (8) {
                ["_matched_route_name":protected]=>
                string(9) "_default_"
                ["_reverse_matched_route_name":protected]=>
                NULL
                ["_routes":protected]=>
                array(6) {
                  ["admin"]=>
                  array(10) {
                    ["type"]=>
                    string(6) "simple"
                    ["name"]=>
                    string(5) "admin"
                    ["pattern"]=>
                    string(27) "admin/:controller/:action/*"
                    ["pattern_parts"]=>
                    array(4) {
                      [0]=>
                      string(6) "static"
                      [1]=>
                      string(3) "var"
                      [2]=>
                      string(3) "var"
                      [3]=>
                      string(8) "wildcard"
                    }
                    ["config"]=>
                    array(2) {
                      ["controller"]=>
                      string(17) "([a-z][a-z0-9]*)*"
                      ["action"]=>
                      string(17) "([a-z][a-z0-9]*)*"
                    }
                    ["vars"]=>
                    array(2) {
                      [1]=>
                      string(10) "controller"
                      [2]=>
                      string(6) "action"
                    }
                    ["varnames"]=>
                    array(4) {
                      ["module"]=>
                      string(5) "admin"
                      ["controller"]=>
                      string(7) "default"
                      ["action"]=>
                      string(5) "index"
                      ["namespace"]=>
                      string(7) "default"
                    }
                    ["defaults"]=>
                    array(4) {
                      ["module"]=>
                      bool(true)
                      ["controller"]=>
                      bool(true)
                      ["action"]=>
                      bool(true)
                      ["namespace"]=>
                      bool(true)
                    }
                    ["static_parts"]=>
                    array(2) {
                      [0]=>
                      string(5) "admin"
                      [3]=>
                      string(1) "*"
                    }
                    ["static_optional"]=>
                    array(2) {
                      [0]=>
                      bool(false)
                      [3]=>
                      bool(false)
                    }
                  }
                  ["user"]=>
                  array(10) {
                    ["type"]=>
                    string(6) "simple"
                    ["name"]=>
                    string(4) "user"
                    ["pattern"]=>
                    string(26) "user/:controller/:action/*"
                    ["pattern_parts"]=>
                    array(4) {
                      [0]=>
                      string(6) "static"
                      [1]=>
                      string(3) "var"
                      [2]=>
                      string(3) "var"
                      [3]=>
                      string(8) "wildcard"
                    }
                    ["config"]=>
                    array(2) {
                      ["controller"]=>
                      string(17) "([a-z][a-z0-9]*)*"
                      ["action"]=>
                      string(17) "([a-z][a-z0-9]*)*"
                    }
                    ["vars"]=>
                    array(2) {
                      [1]=>
                      string(10) "controller"
                      [2]=>
                      string(6) "action"
                    }
                    ["varnames"]=>
                    array(4) {
                      ["module"]=>
                      string(4) "user"
                      ["controller"]=>
                      string(7) "default"
                      ["action"]=>
                      string(5) "index"
                      ["namespace"]=>
                      string(7) "default"
                    }
                    ["defaults"]=>
                    array(4) {
                      ["module"]=>
                      bool(true)
                      ["controller"]=>
                      bool(true)
                      ["action"]=>
                      bool(true)
                      ["namespace"]=>
                      bool(true)
                    }
                    ["static_parts"]=>
                    array(2) {
                      [0]=>
                      string(4) "user"
                      [3]=>
                      string(1) "*"
                    }
                    ["static_optional"]=>
                    array(2) {
                      [0]=>
                      bool(false)
                      [3]=>
                      bool(false)
                    }
                  }
                  ["bin"]=>
                  array(10) {
                    ["type"]=>
                    string(6) "simple"
                    ["name"]=>
                    string(3) "bin"
                    ["pattern"]=>
                    string(25) "bin/:controller/:action/*"
                    ["pattern_parts"]=>
                    array(4) {
                      [0]=>
                      string(6) "static"
                      [1]=>
                      string(3) "var"
                      [2]=>
                      string(3) "var"
                      [3]=>
                      string(8) "wildcard"
                    }
                    ["config"]=>
                    array(2) {
                      ["controller"]=>
                      string(17) "([a-z][a-z0-9]*)*"
                      ["action"]=>
                      string(17) "([a-z][a-z0-9]*)*"
                    }
                    ["vars"]=>
                    array(2) {
                      [1]=>
                      string(10) "controller"
                      [2]=>
                      string(6) "action"
                    }
                    ["varnames"]=>
                    array(4) {
                      ["module"]=>
                      string(3) "bin"
                      ["controller"]=>
                      string(7) "default"
                      ["action"]=>
                      string(5) "index"
                      ["namespace"]=>
                      string(7) "default"
                    }
                    ["defaults"]=>
                    array(4) {
                      ["module"]=>
                      bool(true)
                      ["controller"]=>
                      bool(true)
                      ["action"]=>
                      bool(true)
                      ["namespace"]=>
                      bool(true)
                    }
                    ["static_parts"]=>
                    array(2) {
                      [0]=>
                      string(3) "bin"
                      [3]=>
                      string(1) "*"
                    }
                    ["static_optional"]=>
                    array(2) {
                      [0]=>
                      bool(false)
                      [3]=>
                      bool(false)
                    }
                  }
                  ["wap"]=>
                  array(10) {
                    ["type"]=>
                    string(6) "simple"
                    ["name"]=>
                    string(3) "wap"
                    ["pattern"]=>
                    string(25) "wap/:controller/:action/*"
                    ["pattern_parts"]=>
                    array(4) {
                      [0]=>
                      string(6) "static"
                      [1]=>
                      string(3) "var"
                      [2]=>
                      string(3) "var"
                      [3]=>
                      string(8) "wildcard"
                    }
                    ["config"]=>
                    array(2) {
                      ["controller"]=>
                      string(17) "([a-z][a-z0-9]*)*"
                      ["action"]=>
                      string(17) "([a-z][a-z0-9]*)*"
                    }
                    ["vars"]=>
                    array(2) {
                      [1]=>
                      string(10) "controller"
                      [2]=>
                      string(6) "action"
                    }
                    ["varnames"]=>
                    array(4) {
                      ["module"]=>
                      string(3) "wap"
                      ["controller"]=>
                      string(7) "default"
                      ["action"]=>
                      string(5) "index"
                      ["namespace"]=>
                      string(7) "default"
                    }
                    ["defaults"]=>
                    array(4) {
                      ["module"]=>
                      bool(true)
                      ["controller"]=>
                      bool(true)
                      ["action"]=>
                      bool(true)
                      ["namespace"]=>
                      bool(true)
                    }
                    ["static_parts"]=>
                    array(2) {
                      [0]=>
                      string(3) "wap"
                      [3]=>
                      string(1) "*"
                    }
                    ["static_optional"]=>
                    array(2) {
                      [0]=>
                      bool(false)
                      [3]=>
                      bool(false)
                    }
                  }
                  ["app"]=>
                  array(10) {
                    ["type"]=>
                    string(6) "simple"
                    ["name"]=>
                    string(3) "app"
                    ["pattern"]=>
                    string(25) "app/:controller/:action/*"
                    ["pattern_parts"]=>
                    array(4) {
                      [0]=>
                      string(6) "static"
                      [1]=>
                      string(3) "var"
                      [2]=>
                      string(3) "var"
                      [3]=>
                      string(8) "wildcard"
                    }
                    ["config"]=>
                    array(2) {
                      ["controller"]=>
                      string(17) "([a-z][a-z0-9]*)*"
                      ["action"]=>
                      string(17) "([a-z][a-z0-9]*)*"
                    }
                    ["vars"]=>
                    array(2) {
                      [1]=>
                      string(10) "controller"
                      [2]=>
                      string(6) "action"
                    }
                    ["varnames"]=>
                    array(4) {
                      ["module"]=>
                      string(3) "app"
                      ["controller"]=>
                      string(7) "default"
                      ["action"]=>
                      string(5) "index"
                      ["namespace"]=>
                      string(7) "default"
                    }
                    ["defaults"]=>
                    array(4) {
                      ["module"]=>
                      bool(true)
                      ["controller"]=>
                      bool(true)
                      ["action"]=>
                      bool(true)
                      ["namespace"]=>
                      bool(true)
                    }
                    ["static_parts"]=>
                    array(2) {
                      [0]=>
                      string(3) "app"
                      [3]=>
                      string(1) "*"
                    }
                    ["static_optional"]=>
                    array(2) {
                      [0]=>
                      bool(false)
                      [3]=>
                      bool(false)
                    }
                  }
                  ["_default_"]=>
                  array(10) {
                    ["type"]=>
                    string(6) "simple"
                    ["name"]=>
                    string(9) "_default_"
                    ["pattern"]=>
                    string(21) ":controller/:action/*"
                    ["pattern_parts"]=>
                    array(3) {
                      [0]=>
                      string(3) "var"
                      [1]=>
                      string(3) "var"
                      [2]=>
                      string(8) "wildcard"
                    }
                    ["config"]=>
                    array(2) {
                      ["controller"]=>
                      string(17) "([a-z][a-z0-9]*)*"
                      ["action"]=>
                      string(17) "([a-z][a-z0-9]*)*"
                    }
                    ["vars"]=>
                    array(2) {
                      [0]=>
                      string(10) "controller"
                      [1]=>
                      string(6) "action"
                    }
                    ["varnames"]=>
                    array(4) {
                      ["controller"]=>
                      string(7) "default"
                      ["action"]=>
                      string(5) "index"
                      ["module"]=>
                      string(7) "default"
                      ["namespace"]=>
                      string(7) "default"
                    }
                    ["defaults"]=>
                    array(4) {
                      ["controller"]=>
                      bool(true)
                      ["action"]=>
                      bool(true)
                      ["module"]=>
                      bool(true)
                      ["namespace"]=>
                      bool(true)
                    }
                    ["static_parts"]=>
                    array(1) {
                      [2]=>
                      string(1) "*"
                    }
                    ["static_optional"]=>
                    array(1) {
                      [2]=>
                      bool(false)
                    }
                  }
                }
                ["_var_prefix":protected]=>
                string(1) ":"
                ["_part_delimiter":protected]=>
                string(1) "/"
                ["_default_var_regex":protected]=>
                string(2) ".+"
                ["_udi_var_regex":protected]=>
                string(17) "([a-z][a-z0-9]*)*"
                ["_udi_parts":protected]=>
                array(4) {
                  ["module"]=>
                  string(7) "default"
                  ["namespace"]=>
                  string(7) "default"
                  ["controller"]=>
                  string(7) "default"
                  ["action"]=>
                  string(5) "index"
                }
              }
            }
          }
          [1]=>
          string(10) "actionshow"
        }
        [1]=>
        &array(0) {
        }
      }
    }
    [11]=>
    array(6) {
      ["file"]=>
      string(32) "/var/www/dg-health/app/myapp.php"
      ["line"]=>
      int(231)
      ["function"]=>
      string(7) "execute"
      ["class"]=>
      string(19) "Controller_Abstract"
      ["type"]=>
      string(2) "->"
      ["args"]=>
      array(2) {
        [0]=>
        &string(4) "show"
        [1]=>
        &array(0) {
        }
      }
    }
    [12]=>
    array(6) {
      ["file"]=>
      string(35) "/var/www/dg-health/public/index.php"
      ["line"]=>
      int(14)
      ["function"]=>
      string(11) "dispatching"
      ["class"]=>
      string(5) "MyApp"
      ["type"]=>
      string(2) "->"
      ["args"]=>
      array(0) {
      }
    }
  }
  ["previous":"Exception":private]=>
  NULL
}
File:  /var/www/dg-health/lib/qeephp/library/db/table.php
Line : 370