phpMyAdminのID,パスワードを設定しておく

XAMPPにくっついてきたphpMyAdminを使っていまうが、デフォルトの設定だと30分経つとcookieが時間切れになってしまい、ID/パスワードを入れ直さなくてはなりません。面倒なのでどこかに設定があるはずと思い、探してみるとconfig.inic.phpの中にありました。

デフォルトの設定で、こうなっているところを

$cfg['Servers'][$i]['auth_type']     = 'cookie';    // Authentication method (config, http or cookie based)
$cfg['Servers'][$i]['user']          = 'root';      // MySQL user
$cfg['Servers'][$i]['password']      = '';          // MySQL password (only needed
                                                    // with 'config' auth_type)

次のように書き換えます

$cfg['Servers'][$i]['auth_type']     = 'config';    // Authentication method (config, http or cookie based)
$cfg['Servers'][$i]['user']          = 'root';      // MySQL user
$cfg['Servers'][$i]['password']      = 'password';  // MySQL password (only needed
                                                    // with 'config' auth_type)

当然、セキュリティ的には甘くなる訳ですが、開発用に自分のPC内で動かしてる分には問題ないでしょう。