Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Auto-login phpMyAdmin

We want to auto login users in phpMyAdmin. Now we have a web-interface, written in PHP. Users can login. After logging in, they can click on the SQL link in the menu that opens phpMyAdmin. Is there a way to log them in automatically? Is it possible to set cookies for phpMyAdmin or something to let them use it? We don't want to turn off phpMyAdmin's login; each user has his own MySQL user/pass combination. So we need to pass the username/password settings to phpMyAdmin.

like image 696
www.data-blogger.com Avatar asked Apr 16 '11 16:04

www.data-blogger.com


1 Answers

Add code in config.inc.php below of /* Authentication type */. It exists in the root folder

$cfg['Servers'][$i]['auth_type'] = 'config'; $cfg['Servers'][$i]['user'] = 'root'; $cfg['Servers'][$i]['password'] = '';  
like image 142
Arun Kushwaha Avatar answered Oct 09 '22 19:10

Arun Kushwaha