Enhancement Idea: Default file name template #12903

CaelanStewart opened this Issue Jan 18, 2017 · 3 comments


None yet

2 participants


I always set my filename template for exporting databases to local_@DATABASE@-%Y-%m-%d-%H-%M-%S.

This way, all exports are uniquely named, and are automatically dated by name. But, sometimes needs must and I clear cookies or caches, and phpMyAdmin seems to forget my file name template.

I actually installed the 'Custom JavaScript for Websites' plugin for Chrome, and wrote a script for it that auto-fills the input on the page when its there. But it doesn't always work, because of how phpMyAdmin works with AJAX.

It would be cool if I could set a default value in the config file, and then also keep the customised one in a cookie on a per-database basis, if changed to something other than the default.

Not a biggie, just thought it was worth a mention.


nijel commented Jan 18, 2017

It's already there and called $cfg['Export']['file_template_database'].

@nijel nijel self-assigned this Jan 18, 2017
@nijel nijel added the question label Jan 18, 2017

@nijel, thank you! I'm not a heavy user of phpMyAdmin, and had incorrectly assumed that the options listed in config.sample.inc.php were all of the possible options.

@nijel nijel added documentation and removed question labels Jan 18, 2017
@nijel nijel added this to the 4.7.0 milestone Jan 18, 2017
nijel commented Jan 18, 2017

No, we have way more of them :-).

On the other side, more of them probably should be mentioned in our docs ... https://docs.phpmyadmin.net/en/latest/config.html#export-and-import-settings

@nijel nijel reopened this Jan 18, 2017
@nijel nijel added a commit that closed this issue Jan 18, 2017
@nijel nijel Document more export configuration options
Fixes #12903

Signed-off-by: Michal Čihař <michal@cihar.com>
@nijel nijel closed this in 930086f Jan 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment