phpMyAdminでportの指定をする

phpMyAdminでportを指定する場合は

<?php
$cfg['Server'][$i]['port'] = 'port number';

とすればいいわけなんだけど、なぜかデフォルトの3306を見にいってしまう。
そこでマニュアルを読むとこんなことが書いてあった。

$cfg['Servers'][$i]['port'] string
The port-number of your $i-th MySQL-server. Default is 3306 (leave blank). If you use "localhost" as the hostname, MySQL ignores this port number and connects with the socket, so if you want to connect to a port different from the default port, use "127.0.0.1" or the real hostname in $cfg['Servers'][$i]['host'].

phpMyAdmin Documentation - Configuration

hostをlocalhostと指定しちゃいけないそうな。
開発サーバだったから、そこはlocalhost指定になってましたよ。
てことで、つまりこう書けと。

<?php
$cfg['Server'][$i]['host'] = '127.0.0.1';
$cfg['Server'][$i]['port'] = '3307';