rabin 2 years ago
parent
commit
346992c53f
1 changed files with 16 additions and 0 deletions
  1. 16 0
      config/env/localhost/default.php

+ 16 - 0
config/env/localhost/default.php

@@ -59,6 +59,22 @@ $config['database'] = array
         'password' => isset($dc['mysql']) ? $dc['mysql']['password'] : '123456',
         'charset' => 'utf8mb4',
     ),
+
+    # 定义历史数据库
+    'old' => array
+    (
+        'type' => 'pdo',
+        'host' => array
+        (
+            'read' => isset($dc['mysql']) ? $dc['mysql']['host'] : 'web-mysql:3306',
+            'update' => isset($dc['mysql']) ? $dc['mysql']['host'] : 'web-mysql:3306',
+            'create' => isset($dc['mysql']) ? $dc['mysql']['host_create'] : 'web-mysql:3306',
+        ),
+        'database' => 'chuzren1yi9liao',
+        'username' => isset($dc['mysql']) ? $dc['mysql']['username'] : 'root',
+        'password' => isset($dc['mysql']) ? $dc['mysql']['password'] : '123456',
+        'charset' => 'utf8mb4',
+    ),
 );
 
 # 缓存配置