-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy pathconfig.php.example
41 lines (38 loc) · 1.38 KB
/
config.php.example
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
<?php
// Settings
// Syntax highlight queries?
$settings['sqlColor'] = true;
$reviewhost = array(
// Replace hostname and database in this setting
'dsn' => 'mysql:host=hostname:3306;dbname=database',
'user' => 'user',
'password' => 'password',
// See http://www.percona.com/doc/percona-toolkit/2.0/pt-query-digest.html#cmdoption-pt-query-digest--review
'review_table' => 'review',
// This table is optional. You don't need it, but you lose detailed stats
// Set to a blank string to disable
// See http://www.percona.com/doc/percona-toolkit/2.0/pt-query-digest.html#cmdoption-pt-query-digest--review-history
'history_table' => 'review_history',
);
$explainhosts = array(
'label1' => array(
'dsn' => 'mysql:host=hostname1:3306',
'user' => 'user',
'password' => 'password',
// By default we scan the host to see what databases we can run a
// explain on. To disable this behavour, set an array here
'databases' => array(
'database1',
'database2',
'database4'
),
),
'label2' => array(
'dsn' => 'mysql:host=hostname2:3306',
'user' => 'user',
'password' => 'password',
// You can also just set the field and keep it empty. We will scan for valid databases
'databases' => array(),
),
// ad nauseum...
);