phpMyAdmin

アクセス制限

root ログイン禁止

$cfg['Servers'][$i]['AllowRoot'] = false;

How to Disable Root Logins in phpmyadmin with Ubuntu | Mike Roberto's Blog

ユーザ、ホストで制限

If you want a pre-made sample, you can try this fragment. It stops the 'root' user from logging in from any networks other than the private network IP blocks.

//block root from logging in except from the private networks
$cfg['Servers'][$i]['AllowDeny']['order'] = 'deny,allow';
$cfg['Servers'][$i]['AllowDeny']['rules'] = array(
'deny root from all',
'allow root from localhost',
'allow root from 10.0.0.0/8',
'allow root from 192.168.0.0/16',
'allow root from 172.16.0.0/12',
);

Disable phpmyadmin for a specific domain / user [Archive] - DirectAdmin Forums

http://vine-linux.ddo.jp/linux/php/phpmyadmin.php