Password Protect PHPMyAdmin portal on XAMPP or WAMP
Open Config.inc.php under the PHPMyAdmin folder in editor, try the commented options under lines 11 and 13 to achieve different password protect features.
$i = 0; /* Server: localhost [1] */ $i++; $cfg['Servers'][$i]['verbose'] = 'localhost'; $cfg['Servers'][$i]['host'] = 'localhost'; $cfg['Servers'][$i]['port'] = ''; $cfg['Servers'][$i]['socket'] = ''; $cfg['Servers'][$i]['connect_type'] = 'tcp'; $cfg['Servers'][$i]['extension'] = 'mysqli'; $cfg['Servers'][$i]['auth_type'] = 'config'; // $cfg['Servers'][$i]['auth_type'] = 'http'; // A browser based prompt // $cfg['Servers'][$i]['auth_type'] = 'cookie'; // A web page prompt rendered in HTML $cfg['Servers'][$i]['user'] = 'root'; $cfg['Servers'][$i]['password'] = '123abc'; // Hack me! $cfg['Servers'][$i]['AllowNoPassword'] = true; /* End of servers configuration */ $cfg['DefaultLang'] = 'en-utf-8'; $cfg['ServerDefault'] = 1; $cfg['UploadDir'] = ''; $cfg['SaveDir'] = '';
Leave a Comment