Set character set always
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@311 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
parent
67edf060db
commit
6e1677934c
|
@ -51,7 +51,6 @@ function dump($db) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
echo "SET CHARACTER SET utf8;\n\n";
|
|
||||||
$views = array();
|
$views = array();
|
||||||
$result = $mysql->query("SHOW TABLE STATUS");
|
$result = $mysql->query("SHOW TABLE STATUS");
|
||||||
while ($row = $result->fetch_assoc()) {
|
while ($row = $result->fetch_assoc()) {
|
||||||
|
@ -73,6 +72,7 @@ function dump($db) {
|
||||||
echo "\n\n";
|
echo "\n\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
echo "SET NAMES utf8;\n";
|
||||||
echo "SET FOREIGN_KEY_CHECKS = 0;\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 TIME_ZONE = '" . $mysql->escape_string($mysql->result($mysql->query("SELECT @@TIME_ZONE"))) . "';\n";
|
||||||
echo "\n";
|
echo "\n";
|
||||||
|
|
Loading…
Reference in a new issue