NYCPHP Meetup

NYPHP.org

[nycphp-talk] accessing phpmyadmin as different users

Nestor Florez nestorflorez at earthlink.net
Fri Oct 17 12:11:21 EDT 2003


I am trying to access phpmyadmin as diferent users by having a login webpage 
that ask for the userid and password and then passing it to index.php. In the 
config.inc.php I change the code to look like this:

$cfg['Servers'][$i]['user'] = $_GET['userid'];
$cfg['Servers'][$i]['password'] = $_GET['pwd'];

But when I try this I get an error:
========================================================
Error

MySQL said:

Access denied for user: 'ODBC at localhost' (Using password: NO)
========================================================

If I change the code to :
=========================================
$cfg['Servers'][$i]['user'] = 'view';
$cfg['Servers'][$i]['password'] = 'view';
=========================================

It works. This is the same userid and pwd I am passing from my login page

Any ideas?

This tool is great but it would much easier if we could set it up to allow for users to login 
and according to their user and pwd they would have access to different DB's and tables 
according to the permissions that were granted to them..

Thanks,

Nestor :-)





More information about the talk mailing list