FAQ 4.8

From PmaWiki

Jump to: navigation, search

[edit] Which parameters can I use in the URL that starts phpMyAdmin?

When starting phpMyAdmin, you can use the db, table, pma_username, pma_password, (pma_servername if $cfg['AllowArbitraryServer'] is set to true in config.inc.php,) fontsize (version < 2.11 only) and server parameters. This last one can contain either the numeric host index (from $i of the configuration file) or one of the host names present in the configuration file.

So you can save a bookmark/favorite in your browser to a specific database and/or table, e.g.,

http://example.org/phpMyAdmin/?db=test&table=test&server=1

Automatically logging in is also possible. With the cookie authentication mode you can append pma_username, pma_password and pma_servername (either -name or -address) and with the http authentication mode some browsers allow the username:password@URL syntax. Note that this is browser-specific.

Cookie example (username 'root' and password '123'):

http://example.org/phpMyAdmin/?pma_username=root&pma_password=123

HTTP example (username 'root' and password '123'):

http://root:123@example.org/phpMyAdmin/
Advertisement