|
1 | 1 | <?php
|
2 | 2 |
|
3 | 3 | $reviewhost = array(
|
| 4 | +// Replace hostname and database in this setting |
4 | 5 | 'dsn' => 'mysql:host=hostname:3306;dbname=database',
|
5 | 6 | 'user' => 'user',
|
6 | 7 | 'password' => 'password',
|
| 8 | +// See http://www.percona.com/doc/percona-toolkit/2.0/pt-query-digest.html#cmdoption-pt-query-digest--review |
7 | 9 | 'review_table' => 'review',
|
| 10 | +// This table is optional. You don't need it, but you lose detailed stats |
| 11 | +// See http://www.percona.com/doc/percona-toolkit/2.0/pt-query-digest.html#cmdoption-pt-query-digest--review-history |
8 | 12 | 'history_table' => 'review_history',
|
9 | 13 | );
|
10 | 14 |
|
11 | 15 | $explainhosts = array(
|
12 | 16 | 'label1' => array(
|
13 |
| - 'dsn' => 'mysql:host=hostname1:3306;dbname=database1', |
| 17 | + 'dsn' => 'mysql:host=hostname1:3306', |
14 | 18 | 'user' => 'user',
|
15 |
| - 'password' => 'password' |
| 19 | + 'password' => 'password', |
| 20 | + // By default we scan the host to see what databases we can run a |
| 21 | + // explain on. To disable this behavour, set an array here |
| 22 | + 'databases' => array( |
| 23 | + 'database1', |
| 24 | + 'database2', |
| 25 | + 'database4' |
16 | 26 | ),
|
| 27 | + ), |
17 | 28 | 'label2' => array(
|
18 |
| - 'dsn' => 'mysql:host=hostname2:3306;dbname=database2', |
| 29 | + 'dsn' => 'mysql:host=hostname2:3306', |
19 | 30 | 'user' => 'user',
|
20 |
| - 'password' => 'password' |
21 |
| - ), |
22 |
| - 'label3' => array( |
23 |
| - 'dsn' => 'mysql:host=hostname3:3306;dbname=database3', |
24 |
| - 'user' => 'user', |
25 |
| - 'password' => 'password' |
26 |
| - ) |
| 31 | + 'password' => 'password', |
| 32 | + // You can also just set the field and keep it empty. We will scan for valid databases |
| 33 | + 'databases' => array(), |
| 34 | + ), |
| 35 | + // ad nauseum... |
27 | 36 | );
|
0 commit comments