Skip to content

Commit 032f388

Browse files
committed
add: mariadb config
1 parent d634805 commit 032f388

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

Diff for: config/database.php

+20
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,26 @@
7070
],
7171
],
7272

73+
'mariadb' => [
74+
'driver' => 'mariadb',
75+
'url' => env('DB_URL'),
76+
'host' => env('DB_HOST', '127.0.0.1'),
77+
'port' => env('DB_PORT', '3306'),
78+
'database' => env('DB_DATABASE', 'laravel'),
79+
'username' => env('DB_USERNAME', 'root'),
80+
'password' => env('DB_PASSWORD', ''),
81+
'unix_socket' => env('DB_SOCKET', ''),
82+
'charset' => env('DB_CHARSET', 'utf8mb4'),
83+
'collation' => env('DB_COLLATION', 'utf8mb4_unicode_ci'),
84+
'prefix' => '',
85+
'prefix_indexes' => true,
86+
'strict' => true,
87+
'engine' => null,
88+
'options' => \extension_loaded('pdo_mysql') ? array_filter([
89+
PDO::MYSQL_ATTR_SSL_CA => env('MYSQL_ATTR_SSL_CA'),
90+
]) : [],
91+
],
92+
7393
'pgsql' => [
7494
'driver' => 'pgsql',
7595
'url' => env('DB_URL'),

0 commit comments

Comments
 (0)