mirror of
https://github.com/vrana/adminer.git
synced 2026-07-31 04:50:33 +02:00
max_allowed_packet doesn't work
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@570 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
@@ -12,11 +12,10 @@ function tar_file($filename, $contents) {
|
||||
if ($_POST) {
|
||||
$ext = dump_headers((strlen($_GET["dump"]) ? $_GET["dump"] : $_GET["db"]), (!strlen($_GET["db"]) || count(array_filter((array) $_POST["tables"]) + array_filter((array) $_POST["data"])) > 1));
|
||||
if ($_POST["format"] != "csv") {
|
||||
$max_packet = 16777216;
|
||||
$max_packet = 1048576; // default, minimum is 1024
|
||||
echo "SET NAMES utf8;\n";
|
||||
echo "SET foreign_key_checks = 0;\n";
|
||||
echo "SET time_zone = '" . $mysql->escape_string($mysql->result($mysql->query("SELECT @@time_zone"))) . "';\n";
|
||||
echo "SET max_allowed_packet = $max_packet;\n"; // ignored because of MySQL bug #22891
|
||||
echo "\n";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user