-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSetup
More file actions
27 lines (27 loc) · 1.33 KB
/
Setup
File metadata and controls
27 lines (27 loc) · 1.33 KB
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
1. Cloned my github repo
2. Installed code ignitor plus (https://github.com/ranacseruet/codeigniterplus)
3. Setup database
$db['default']['hostname'] = 'localhost:/var/lib/stickshift/528abc3c500446017100008d/app-root/data/lib/mysql/socket/mysql.sock';
$db['default']['username'] = 'tspinelli';
$db['default']['password'] = '';
$db['default']['database'] = 'c9';
$db['default']['dbdriver'] = 'mysql';
$db['default']['dbprefix'] = '';
$db['default']['pconnect'] = TRUE;
$db['default']['db_debug'] = TRUE;
$db['default']['cache_on'] = FALSE;
$db['default']['cachedir'] = '';
$db['default']['char_set'] = 'utf8';
$db['default']['dbcollat'] = 'utf8_general_ci';
$db['default']['swap_pre'] = '';
$db['default']['autoinit'] = TRUE;
$db['default']['stricton'] = FALSE;
4. Started MySQL - mysql-ctl start
5. Navigate to: https://c9-c9-tspinelli.c9.io/home/db_schema/create
6. c9/application/third_party/Doctrine/DBAL/Driver/PDOMySql/Driver.php
// changed $dsn .= 'host=' . $params['host'] . ';';
$dsn .= 'host=' . 'localhost' . ';';
...
// added
$dsn .= 'unix_socket=' . '/var/lib/stickshift/528abc3c500446017100008d/app-root/data/lib/mysql/socket/mysql.sock' . ';';
7. Modified GIT setup per https://github.com/DouglasCAyers/Cloud9-FAQ/tree/master