Last active
November 15, 2019 22:41
-
-
Save incredimike/5292867 to your computer and use it in GitHub Desktop.
PHPMyAdmin - Export Zipped & Drop Tables / Databases by default
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php # Add the following to config.inc.php | |
$cfg['Export']['sql_drop_database'] = true; | |
$cfg['Export']['sql_drop_table'] = true; | |
$cfg['Export']['compression'] = 'zip'; |
Nice, thanks for the tip. I've made a custom version: https://gist.github.com/mnapoli/7428000
Also, I write this config to /etc/phpmyadmin/conf.d/export.inc.php
rather than editing config.inc.php
, it's less error-prone.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
+1 for line #4