'mysql', 'time_query_rule' => array ( ), 'auto_timestamp' => true, 'datetime_format' => 'Y-m-d H:i:s', 'connections' => array ( 'mysql' => array ( 'type' =>env("database.type","mysql"), 'hostname' => env("database.hostname","127.0.0.1"), 'database' => env("database.database","lemocms"), 'username' => env("database.username","root"), 'password' => env("database.password","root"), 'hostport' =>env("database.hostport","3306"), 'params' => array ( ), 'charset' => env("database.charset","utf8mb4"), 'prefix' =>env("database.prefix","lm_"), 'debug' => env("database.debug",true), 'deploy' => 0,/// 数据库部署方式:0 集中式(单一服务器),1 分布式(主从服务器) 'rw_separate' => false, // 数据库读写是否分离 主从式有效 'resultset_type'=>"collection", // 开启自动主库读取 'read_master' => false, 'master_num' => 1,// 读写分离后 主服务器数量 'slave_no' => '',//// 指定从服务器序号 // 监听SQL 'trigger_sql' => true, // 开启字段缓存 'fields_cache' => false, 'fields_strict' => true, 'break_reconnect' => false, 'schema_cache_path' => '..\\runtime\\schema\\', // 字段缓存路径 // 'schema_cache_path' => app()->getRuntimePath() . 'schema' . DIRECTORY_SEPARATOR, ), ), ) ;