'pgsql', 'connections' => [ 'mysql' => [ // 数据库类型 'type' => 'mysql', // 服务器地址 'hostname' => '127.0.0.1', // 数据库名 'database' => 'adlibs', // 数据库用户名 'username' => 'root', // 数据库密码 'password' => 'hope8848', // 数据库连接端口 'hostport' => '3309', // 数据库连接参数 'params' => [ // 连接超时3秒 \PDO::ATTR_TIMEOUT => 3, ], // 数据库编码默认采用utf8 'charset' => 'utf8', // 数据库表前缀 'prefix' => '', // 断线重连 'break_reconnect' => true, // 自定义分页类 'bootstrap' => '' ], 'pgsql' => [ // 数据库类型 'type' => 'pgsql', // 服务器地址 'hostname' => 'pgm-gs5501335ix0np90mo.pgsql.singapore.rds.aliyuncs.com', // 数据库名 'database' => 'adlibs', // 数据库用户名 'username' => 'adlibs', // 数据库密码 'password' => '1C8I1EBS3C5w5US', // 数据库连接端口 'hostport' => '5432', // 数据库连接参数 'params' => [ // 连接超时3秒 \PDO::ATTR_TIMEOUT => 3, ], // 数据库编码默认采用utf8 'charset' => 'utf8', // 数据库表前缀 'prefix' => '', // 断线重连 'break_reconnect' => true, // 关闭SQL监听日志 'trigger_sql' => false, // 自定义分页类 'bootstrap' => '', // 'schema' => 'public'// 设置默认 schema 'debug' => true, // 'fields_strict' => false, 'fields_cache' => false, ], ], ];