Skip to content

Commit f221439

Browse files
committed
Fix an issue with how the port was specified in the DSN in the example config
1 parent e7ab2cc commit f221439

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

config.php.example

+3-3
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ $settings['defaultColumnVis']['Comments'] = true;
4242
$reviewhost = array(
4343
// Replace hostname and database in this setting
4444
// use host=hostname:port if not the default port
45-
'dsn' => 'mysql:host=hostname;dbname=percona',
45+
'dsn' => 'mysql:host=hostname;port=3306;dbname=percona',
4646
'user' => 'user',
4747
'password' => 'password',
4848
// See http://www.percona.com/doc/percona-toolkit/2.1/pt-query-digest.html#cmdoption-pt-query-digest--review
@@ -55,7 +55,7 @@ $reviewhost = array(
5555

5656
$explainhosts = array(
5757
'label1' => array(
58-
'dsn' => 'mysql:host=hostname1:3306',
58+
'dsn' => 'mysql:host=hostname1;port=3306',
5959
'user' => 'user',
6060
'password' => 'password',
6161
// By default we scan the host to see what databases we can run a
@@ -67,7 +67,7 @@ $explainhosts = array(
6767
),
6868
),
6969
'label2' => array(
70-
'dsn' => 'mysql:host=hostname2:3306',
70+
'dsn' => 'mysql:host=hostname2;port=3306',
7171
'user' => 'user',
7272
'password' => 'password',
7373
// You can also just set the field and keep it empty. We will scan for valid databases

0 commit comments

Comments
 (0)