-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconfig.php
39 lines (36 loc) · 889 Bytes
/
config.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?php
$GLOBALS['DB_CONFIG'] = [
'mysql' => [
'driver' => 'mysql',
'url' => '',
'host' => 'localhost',
'port' => '3306',
'database' => 'test',
'username' => 'root',
'password' => '',
'charset' => 'utf8mb4',
'collation' => 'utf8mb4_unicode_ci',
'prefix' => ''
],
'sqlite' => [
'driver' => 'sqlite',
'url' => __DIR__ . '/',
'database' => '',
'prefix' => '',
'fk_const' => ''
],
'pgsql' => [
'driver' => 'pgsql',
'url' => '',
'host' => 'localhost',
'port' => '5432',
'database' => '',
'username' => 'root',
'password' => '',
'charset' => 'utf8mb4',
'collation' => '',
'prefix' => ''
],
];
define('DB', $GLOBALS['DB_CONFIG']['mysql']);
define('APP', str_replace("\\", "/", str_replace('app', '', __DIR__)));