Merge pull request #12603 from atm-florianm/NEW_9.0_mysqldump_export_enable_using_--quick_option
NEW 9.0: enable user to use the mysqldump '--quick' option
This commit is contained in:
commit
d6ef77e895
@ -211,7 +211,6 @@ print '<tr '.$bc[false].'><td style="padding-left: 8px">';
|
|||||||
<div class="formelementrow"><input type="checkbox"
|
<div class="formelementrow"><input type="checkbox"
|
||||||
name="use_transaction" value="yes" id="checkbox_use_transaction" /> <label
|
name="use_transaction" value="yes" id="checkbox_use_transaction" /> <label
|
||||||
for="checkbox_use_transaction"> <?php echo $langs->trans("UseTransactionnalMode"); ?></label>
|
for="checkbox_use_transaction"> <?php echo $langs->trans("UseTransactionnalMode"); ?></label>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php if (! empty($conf->global->MYSQL_OLD_OPTION_DISABLE_FK)) { ?>
|
<?php if (! empty($conf->global->MYSQL_OLD_OPTION_DISABLE_FK)) { ?>
|
||||||
@ -234,6 +233,14 @@ print '<tr '.$bc[false].'><td style="padding-left: 8px">';
|
|||||||
<option value="ORACLE">ORACLE</option>
|
<option value="ORACLE">ORACLE</option>
|
||||||
<option value="POSTGRESQL">POSTGRESQL</option>
|
<option value="POSTGRESQL">POSTGRESQL</option>
|
||||||
</select> <br>
|
</select> <br>
|
||||||
|
<input type="checkbox" name="use_mysql_quick_param" value="yes" id="checkbox_use_quick" />
|
||||||
|
<label for="checkbox_use_quick">
|
||||||
|
<?php echo $form->textwithpicto(
|
||||||
|
$langs->trans('ExportUseMySQLQuickParameter'),
|
||||||
|
$langs->trans('ExportUseMySQLQuickParameterHelp')
|
||||||
|
); ?>
|
||||||
|
</label>
|
||||||
|
<br/>
|
||||||
<!-- <input type="checkbox" name="drop_database" value="yes"
|
<!-- <input type="checkbox" name="drop_database" value="yes"
|
||||||
id="checkbox_drop_database" /> <label for="checkbox_drop_database"><?php echo $langs->trans("AddDropDatabase"); ?></label>
|
id="checkbox_drop_database" /> <label for="checkbox_drop_database"><?php echo $langs->trans("AddDropDatabase"); ?></label>
|
||||||
-->
|
-->
|
||||||
|
|||||||
@ -262,6 +262,7 @@ class Utils
|
|||||||
if (GETPOST("disable_fk", "alpha") || $usedefault) $param.=" -K";
|
if (GETPOST("disable_fk", "alpha") || $usedefault) $param.=" -K";
|
||||||
if (GETPOST("sql_compat", "alpha") && GETPOST("sql_compat", "alpha") != 'NONE') $param.=" --compatible=".escapeshellarg(GETPOST("sql_compat", "alpha"));
|
if (GETPOST("sql_compat", "alpha") && GETPOST("sql_compat", "alpha") != 'NONE') $param.=" --compatible=".escapeshellarg(GETPOST("sql_compat", "alpha"));
|
||||||
if (GETPOST("drop_database", "alpha")) $param.=" --add-drop-database";
|
if (GETPOST("drop_database", "alpha")) $param.=" --add-drop-database";
|
||||||
|
if (GETPOST("use_mysql_quick_param", "alpha"))$param.=" --quick";
|
||||||
if (GETPOST("sql_structure", "alpha") || $usedefault)
|
if (GETPOST("sql_structure", "alpha") || $usedefault)
|
||||||
{
|
{
|
||||||
if (GETPOST("drop", "alpha") || $usedefault) $param.=" --add-drop-table=TRUE";
|
if (GETPOST("drop", "alpha") || $usedefault) $param.=" --add-drop-table=TRUE";
|
||||||
|
|||||||
@ -174,6 +174,8 @@ Compression=Compression
|
|||||||
CommandsToDisableForeignKeysForImport=Command to disable foreign keys on import
|
CommandsToDisableForeignKeysForImport=Command to disable foreign keys on import
|
||||||
CommandsToDisableForeignKeysForImportWarning=Mandatory if you want to be able to restore your sql dump later
|
CommandsToDisableForeignKeysForImportWarning=Mandatory if you want to be able to restore your sql dump later
|
||||||
ExportCompatibility=Compatibility of generated export file
|
ExportCompatibility=Compatibility of generated export file
|
||||||
|
ExportUseMySQLQuickParameter=Use the --quick parameter
|
||||||
|
ExportUseMySQLQuickParameterHelp=The '--quick' parameter helps limit RAM consumption for large tables.
|
||||||
MySqlExportParameters=MySQL export parameters
|
MySqlExportParameters=MySQL export parameters
|
||||||
PostgreSqlExportParameters= PostgreSQL export parameters
|
PostgreSqlExportParameters= PostgreSQL export parameters
|
||||||
UseTransactionnalMode=Use transactional mode
|
UseTransactionnalMode=Use transactional mode
|
||||||
|
|||||||
@ -174,6 +174,8 @@ Compression=Compression
|
|||||||
CommandsToDisableForeignKeysForImport=Commande pour désactiver les clés étrangères à l'importation
|
CommandsToDisableForeignKeysForImport=Commande pour désactiver les clés étrangères à l'importation
|
||||||
CommandsToDisableForeignKeysForImportWarning=Requis si vous voulez être en mesure de restaurer votre « dump » SQL plus tard
|
CommandsToDisableForeignKeysForImportWarning=Requis si vous voulez être en mesure de restaurer votre « dump » SQL plus tard
|
||||||
ExportCompatibility=Compatibilité du fichier d'exportation généré
|
ExportCompatibility=Compatibilité du fichier d'exportation généré
|
||||||
|
ExportUseMySQLQuickParameter=Utiliser le paramètre --quick
|
||||||
|
ExportUseMySQLQuickParameterHelp=permet de limiter la consommation de mémoire vive (utile en cas de tables volumineuses)
|
||||||
MySqlExportParameters=Paramètres de l'exportation MySQL
|
MySqlExportParameters=Paramètres de l'exportation MySQL
|
||||||
PostgreSqlExportParameters= Paramètres de l'exportation PostgreSQL
|
PostgreSqlExportParameters= Paramètres de l'exportation PostgreSQL
|
||||||
UseTransactionnalMode=Utiliser le mode transactionnel
|
UseTransactionnalMode=Utiliser le mode transactionnel
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user