How to Disable root Login in phpMyAdmin ?

In this guide we will show you how to restrict root login through phpMyAdmin.For this you have to edit phpMyAdmin configuration file config.inc.php and update following parameters:

cd /usr/share/phpmyadmin
# nano config.inc.php

$cfg['Servers'][$i]['auth_type'] = 'cookie';
$cfg['Servers'][$i]['AllowRoot'] = FALSE;

If there is no config.inc.php file available, You can create it by copying config.sample.inc.php file at same location.

# cp config.sample.inc.php config.inc.php