Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

phpmyadmin - default to structure instead of browse

Tags:

php

phpmyadmin

Can I set the default in phpMyAdmin to open in structure instead of browse?

thanks

like image 219
sdfor Avatar asked May 04 '10 17:05

sdfor


2 Answers

If perchance you are using the "quick access icon" next to the table name in the navigation frame, this may be configured.

From the configuration file documentation:

$cfg['LeftDefaultTabTable'] string

Defines the tab displayed by default when clicking the small icon next to each table name in the navigation panel. Possible values: "tbl_structure.php", "tbl_sql.php", "tbl_select.php", "tbl_change.php" or "sql.php".

For MAMP 3.x the DefaultTabTable configuration parameter applies. It needs to be set in MAMP/bin/phpMyAdmin/config.inc.php, e.g.:

$cfg['DefaultTabTable'] = 'sql.php';
like image 103
etheros Avatar answered Oct 16 '22 04:10

etheros


As I said in my comment, you can click on the little table icon to the left of the table name (assuming, as Mike B said, we are talking about the table list on the left) and it will open up the table structure page.

AFAIK, switching the behavior on those links is not possible through a configuration directive. You would have to dig through the code and change it in there. Shouldn't be too complicated, though.

like image 21
Felix Avatar answered Oct 16 '22 05:10

Felix