1直接在config.php中中定义db_config_test
'db_config_test' => 'mysql://root:root@127.0.0.1/table_namet#utf8',
2.连接部分代码:
//数据读取 例子
$list = Db::connect('db_config_test')->table('table_name')->select();
或者
$list = Db::connect('db_config_test')->query('select * from table_name');