public function index() { $Model = new \Think\Model(); $db_conf = 'mysql://' . C('DB_USER') . ':' . C('DB_PWD') . '@' . C('DB_HOST') . ':3306/information_schema'; $data = $Model->db(1, $db_conf)->table('tables')->where(array('TABLE_SCHEMA' => C('DB_NAME')))->field('table_name,table_rows,create_time,table_comment')->select(); $this->assign('data', $data); $this->display(); }