Skip to content

Commit 59f31e4

Browse files
committed
update db
1 parent 647798c commit 59f31e4

File tree

1 file changed

+21
-13
lines changed

1 file changed

+21
-13
lines changed

config/db.php

Lines changed: 21 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,22 @@
11
<?php
2-
$db['default']['dbserver'] = 'mysql';
3-
$db['default']['hostname'] = 'localhost';
4-
$db['default']['username'] = 'root';
5-
$db['default']['password'] = 'root';
6-
$db['default']['database'] = 'benchmark';
7-
/*
8-
To override db connection details, copy the above config values into a file called config.db.local.php,
9-
which is set to be ignored by git and thus will not be committed inadvertently!
10-
*/
11-
if (file_exists(dirname(__FILE__).DIRECTORY_SEPARATOR.'config.db.local.php')) {
12-
include dirname(__FILE__).DIRECTORY_SEPARATOR.'config.db.local.php';
13-
}
14-
?>
2+
3+
$db = array(
4+
// development database (default)
5+
'dev' => array(
6+
'driver' => 'mysql',
7+
'hostname' => 'localhost',
8+
'username' => 'root',
9+
'password' => 'root',
10+
'database' => 'benchmark'
11+
),
12+
//production database (live website)
13+
'prod' => array(
14+
'driver' => '',
15+
'hostname' => '',
16+
'username' => '',
17+
'password' => '',
18+
'database' => ''
19+
)
20+
);
21+
22+
// -- end

0 commit comments

Comments
 (0)