From d8911d9735ff65d29a0d2cc748ee83b16908376a Mon Sep 17 00:00:00 2001 From: David Bomba Date: Wed, 9 Jun 2021 14:25:26 +1000 Subject: [PATCH] Add additional databases --- config/database.php | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/config/database.php b/config/database.php index c516de1eee..0e9e4b7692 100644 --- a/config/database.php +++ b/config/database.php @@ -99,6 +99,24 @@ return [ // ), ], + 'db-ninja-01a' => [ + 'driver' => 'mysql', + 'host' => env('DB_HOST1', env('DB_HOST', '127.0.0.1')), + 'database' => env('DB_DATABASE2', env('DB_DATABASE', 'forge')), + 'username' => env('DB_USERNAME2', env('DB_USERNAME', 'forge')), + 'password' => env('DB_PASSWORD2', env('DB_PASSWORD', '')), + 'port' => env('DB_PORT1', env('DB_PORT', '3306')), + 'charset' => 'utf8mb4', + 'collation' => 'utf8mb4_unicode_ci', + 'prefix' => '', + 'prefix_indexes' => true, + 'strict' => env('DB_STRICT', false), + 'engine' => 'InnoDB ROW_FORMAT=COMPRESSED KEY_BLOCK_SIZE=8', + // 'options' => array( + // PDO::ATTR_EMULATE_PREPARES => true + // ), + ], + 'db-ninja-02' => [ 'driver' => 'mysql', 'host' => env('DB_HOST2', env('DB_HOST', '127.0.0.1')), @@ -116,6 +134,24 @@ return [ // PDO::ATTR_EMULATE_PREPARES => true // ), ], + + 'db-ninja-02a' => [ + 'driver' => 'mysql', + 'host' => env('DB_HOST2', env('DB_HOST', '127.0.0.1')), + 'database' => env('DB_DATABASE1', env('DB_DATABASE', 'forge')), + 'username' => env('DB_USERNAME1', env('DB_USERNAME', 'forge')), + 'password' => env('DB_PASSWORD1', env('DB_PASSWORD', '')), + 'port' => env('DB_PORT2', env('DB_PORT', '3306')), + 'charset' => 'utf8mb4', + 'collation' => 'utf8mb4_unicode_ci', + 'prefix' => '', + 'prefix_indexes' => true, + 'strict' => env('DB_STRICT', false), + 'engine' => 'InnoDB ROW_FORMAT=COMPRESSED KEY_BLOCK_SIZE=8', + // 'options' => array( + // PDO::ATTR_EMULATE_PREPARES => true + // ), + ], ], /*