PASSWORD PROTECT PHPMYADMIN

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.

view source

01 $i = 0;
02 /* Server: localhost [1] */
03 $i++;
04 $cfg['Servers'][$i]['verbose'] = 'localhost';
05 $cfg['Servers'][$i]['host'] = 'localhost';
06 $cfg['Servers'][$i]['port'] = '';
07 $cfg['Servers'][$i]['socket'] = '';
08 $cfg['Servers'][$i]['connect_type'] = 'tcp';
09 $cfg['Servers'][$i]['extension'] = 'mysqli';
10 $cfg['Servers'][$i]['auth_type'] = 'config';
11 // $cfg['Servers'][$i]['auth_type'] = 'http';
12 // A browser based prompt
13 // $cfg['Servers'][$i]['auth_type'] = 'cookie';
14 // A web page prompt rendered in HTML
15 $cfg['Servers'][$i]['user'] = 'root';
16 $cfg['Servers'][$i]['password'] = '123abc'// Hack me!
17 $cfg['Servers'][$i]['AllowNoPassword'] = true;
18 /* End of servers configuration */
19 $cfg['DefaultLang'] = 'en-utf-8';
20 $cfg['ServerDefault'] = 1;
21 $cfg['UploadDir'] = '';
22 $cfg['SaveDir'] = '';

Leave a comment