In the newly developed phpMyAdmin (currently 3.4.2), how can you set the default for the export to "View output as text"?
This worked, but no longer works:
$ cfg ['Export'] ['asfile'] = false;
I tried these things after looking at the code display_export.lib.php, but no luck:
$ cfg ['Export'] ['repopulate'] = true;
$ cfg ['Export'] ['view_as_text'] = true;
Their documentation does not seem to be updated: http://wiki.phpmyadmin.net/pma/Config
Recommended Solution
Until someone can find the βright wayβ to change this, I would recommend changing this line to display_export.lib.php(currently line 328). Bold is my complement. There is also one parenthesis in bold to the right of the first set of bold elements.
<li> <input type = "radio" id = "radio_view_as_text" name = "output_format" value = "astext" <? php echo (! empty ($ cfg ['Export'] ['view_as_text']) || isset ( $ _GET ['repopulate']) ) ? 'checked = "checked"': ''?> /> <label for = "radio_view_as_text"> <? php echo __ ('View output as text'); ?> </label> </li>