Permalink
Browse files

Fix #14775 - export to SQL format not available for tables

Fixes: #14775 - export to SQL format not available for tables
Signed-off-by: William Desportes <williamdes@wdes.fr>
  • Loading branch information...
williamdes committed Dec 19, 2018
1 parent 348f1fb commit 95114841420af6277b0406ec7f0d32c4ff3fcf27
Showing with 5 additions and 0 deletions.
  1. +5 −0 libraries/classes/Display/Export.php
@@ -662,6 +662,11 @@ public function getDisplay(
$GLOBALS['single_table'] = $_POST['single_table'];
}
// Export a single table
if (isset($_GET['single_table'])) {
$GLOBALS['single_table'] = $_GET['single_table'];
}
/* Scan for plugins */
/* @var $exportList ExportPlugin[] */
$exportList = Plugins::getPlugins(

6 comments on commit 9511484

@gesior

This comment has been minimized.

Copy link

gesior replied Dec 29, 2018

Best fix in phpmyadmin history! After 9 years of using phpmyadmin, first time visited github! Just to find this fix!

@KhanhKid

This comment has been minimized.

Copy link

KhanhKid replied Jan 18, 2019

haha I love this fix.
I used phpmyadmin for a long time and first time I know about github of phpmyadmin

@NathanielNat

This comment has been minimized.

Copy link

NathanielNat replied Jan 28, 2019

Please how do I use the code above to resolve the issue?

@NathanielNat

This comment has been minimized.

Copy link

NathanielNat replied Jan 28, 2019

Please how do I use the code to fix the issue

@gesior

This comment has been minimized.

Copy link

gesior replied Jan 28, 2019

@NathanielNat
Open file libraries/classes/Display/Export.php in phpmyadmin folder.
Find:

/* Scan for plugins */

and above paste:

        // Export a single table
        if (isset($_GET['single_table'])) {
            $GLOBALS['single_table'] = $_GET['single_table'];
        }
@DEQ-Dave

This comment has been minimized.

Copy link

DEQ-Dave replied Feb 14, 2019

A simpler "fix" that doesn't require any editing ... courtesy of an answer from this post on StackOverflow:

Select the db, then check next to the table, select export under "with selected" and you will get the SQL option.

Please sign in to comment.