-
Notifications
You must be signed in to change notification settings - Fork 0
/
_config.php
executable file
·42 lines (40 loc) · 1.09 KB
/
_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
40
41
42
<?php
/**
* To install (install Silverstripe), copy the following (uncommented) code to the bottom
* of /framework/_register_database.php
*/
/*
DatabaseAdapterRegistry::register(
array(
'class' => 'PDOMySQLDatabase',
'title' => 'PDO MySQL 5.0+',
'helperPath' => 'pdomysql/code/PDOMySQLDatabaseConfigurationHelper.php',
'supported' => (class_exists('PDO')),
'missingExtensionText' => 'The <a href="http://php.net/manual/en/book.pdo.php">PDO</a> ' .
'PHP extension is not available. Please install or enable one of them and refresh this page.',
'fields' => array(
'server' => array(
'title' => 'Database server',
'default' => 'localhost'
),
'port' => array(
'title' => 'Database port:<br /><small>leave blank if using localhost</small>',
'default' => ''
),
'username' => array(
'title' => 'Database username',
'default' => 'root'
),
'password' => array(
'title' => 'Database password',
'default' => '',
'type' => 'password'
),
'database' => array(
'title' => 'Database name',
'default' => 'ss_mysite'
),
),
)
);
*/