Editing connection information

View: New views
2 Messages — Rating Filter:   Alert me  

Editing connection information

by bigJME :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

ok so in the file config.inc.php you are able to change the username and password in which phpmyadmin will connect via, in this file the following 2 lines control the username and password

$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = '';

this i can change by opening the file and changing username and password however i do not want to have to do that for all my user accounts if i allow someone else to connect to my server, therefore i wish to include a php $_GET script into the config file

i was wanting it to run something like this

you enter the web address e.g.

http://localhost/phpmyadmin/?user=test&password=test2

and then the config file should get the username and password posted in the url. is there any way of setting this up?

p.s. in the example above phpmyadmin should try and connect using the username of "test" and a password of "test2"

Re: Editing connection information

by Marc Delisle-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

bigJME a écrit :

> ok so in the file config.inc.php you are able to change the username and
> password in which phpmyadmin will connect via, in this file the following 2
> lines control the username and password
>
> $cfg['Servers'][$i]['user'] = 'root';
> $cfg['Servers'][$i]['password'] = '';
>
> this i can change by opening the file and changing username and password
> however i do not want to have to do that for all my user accounts if i allow
> someone else to connect to my server, therefore i wish to include a php
> $_GET script into the config file

It would be easier to use the 'cookie' auth_type (users are then
prompted for a username and password). However, to use a URL, see FAQ
4.8 in Documentation.html.

Please next time use the phpmyadmin-users list.

>
> i was wanting it to run something like this
>
> you enter the web address e.g.
>
> http://localhost/phpmyadmin/?user=test&password=test2
>
> and then the config file should get the username and password posted in the
> url. is there any way of setting this up?
>
> p.s. in the example above phpmyadmin should try and connect using the
> username of "test" and a password of "test2"


--
Marc Delisle
http://infomarc.info

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Phpmyadmin-devel mailing list
Phpmyadmin-devel@...
https://lists.sourceforge.net/lists/listinfo/phpmyadmin-devel