-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathconfig.inc.php
52 lines (44 loc) · 1.63 KB
/
config.inc.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
43
44
45
46
47
48
49
50
51
52
<?php
$cfg['ShowChgPassword'] = false;
$cfg['VersionCheck'] = false;
$cfg['OBGzip'] = 'auto';
$cfg['ShowServerInfo'] = false;
$cfg['ShowStats'] = false;
$cfg['ShowCreateDb'] = false;
$cfg['Error_Handler']['display'] = false;
/* vim: set expandtab sw=4 ts=4 sts=4: */
/**
* phpMyAdmin sample configuration, you can use it as base for
* manual configuration. For easier setup you can use setup/
*
* All directives are explained in Documentation.html and on phpMyAdmin
* wiki <http://wiki.phpmyadmin.net>.
*
* @package PhpMyAdmin
*/
/*
* Servers configuration
*/
$i = 0;
$services_json = json_decode(getenv("VCAP_SERVICES"),true);
$cfg['Servers'][1]['auth_type'] = 'appfog';
$cfg['bound_services'] = false;
foreach($services_json["mysql-5.1"] as $E) {
$i++;
$mysql_config = $E["credentials"];
$cfg['Servers'][$i]['auth_type'] = 'appfog';
/* Server parameters */
$cfg['Servers'][$i]['host'] = $mysql_config["hostname"];
$cfg['Servers'][$i]['verbose'] = $E["name"];
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['compress'] = false;
/* Select mysql if your server does not have mysqli */
$cfg['Servers'][$i]['extension'] = 'mysqli';
$cfg['Servers'][$i]['AllowNoPassword'] = false;
$cfg['Servers'][$i]['user'] = $mysql_config["username"];
$cfg['Servers'][$i]['password'] = $mysql_config["password"];
$cfg['Servers'][$i]['only_db'] = $mysql_config["name"];
$cfg['Servers'][$i]['hide_db'] = 'information_schema';
$cfg['Servers'][$i]['ShowDatabasesCommand'] = 'SELECT DISTINCT TABLE_SCHEMA FROM information_schema.SCHEMA_PRIVILEGES';
$cfg['bound_services'] = true;
}