⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mysqldump.test

📁 这是linux下运行的mysql软件包,可用于linux 下安装 php + mysql + apach 的网络配置
💻 TEST
📖 第 1 页 / 共 3 页
字号:
# Embedded server doesn't support external clients--source include/not_embedded.inc--disable_warningsDROP TABLE IF EXISTS t1, `"t"1`, t1aa, t2, t2aa;drop database if exists mysqldump_test_db;drop database if exists db1;drop database if exists db2;drop view if exists v1, v2, v3;--enable_warnings# XML outputCREATE TABLE t1(a int);INSERT INTO t1 VALUES (1), (2);--exec $MYSQL_DUMP --skip-create --skip-comments -X test t1DROP TABLE t1;## Bug #2005#CREATE TABLE t1 (a decimal(64, 20));INSERT INTO t1 VALUES ("1234567890123456789012345678901234567890"),("0987654321098765432109876543210987654321");--exec $MYSQL_DUMP --compact test t1DROP TABLE t1;## Bug #2055#CREATE TABLE t1 (a double);INSERT INTO t1 VALUES ('-9e999999');# The following replaces is here because some systems replaces the above# double with '-inf' and others with MAX_DOUBLE--replace_result (-1.79769313486232e+308) (RES) (NULL) (RES)--exec $MYSQL_DUMP --compact test t1DROP TABLE t1;## Bug #3361 mysqldump quotes DECIMAL values inconsistently#CREATE TABLE t1 (a DECIMAL(10,5), b FLOAT);# check at first how mysql work with quoted decimalINSERT INTO t1 VALUES (1.2345, 2.3456);INSERT INTO t1 VALUES ('1.2345', 2.3456);INSERT INTO t1 VALUES ("1.2345", 2.3456);SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='ANSI_QUOTES';INSERT INTO t1 VALUES (1.2345, 2.3456);INSERT INTO t1 VALUES ('1.2345', 2.3456);--error 1054INSERT INTO t1 VALUES ("1.2345", 2.3456);SET SQL_MODE=@OLD_SQL_MODE;# check how mysqldump make quoting--exec $MYSQL_DUMP --compact test t1--exec $MYSQL_DUMP --compact --skip-create test t1--exec $MYSQL_DUMP --skip-create --skip-comments test t1--exec $MYSQL_DUMP --skip-opt --extended-insert --skip-comments test t1DROP TABLE t1;CREATE TABLE t1(a int, b text, c varchar(3));INSERT INTO t1 VALUES (1, "test", "tes"), (2, "TEST", "TES");--exec $MYSQL_DUMP --skip-create --compact -X test t1DROP TABLE t1;## Bug #1707#CREATE TABLE t1 (`a"b"` char(2));INSERT INTO t1 VALUES ("1\""), ("\"2");--exec $MYSQL_DUMP --compact --skip-create -X test t1DROP TABLE t1;## Bug #1994# Bug #4261#CREATE TABLE t1 (a  VARCHAR(255)) DEFAULT CHARSET koi8r;INSERT INTO t1  VALUES (_koi8r x'C1C2C3C4C5'), (NULL);--exec $MYSQL_DUMP --skip-comments --skip-extended-insert test t1DROP TABLE t1;## Bug #2634#CREATE TABLE t1 (a int) ENGINE=MYISAM;INSERT INTO t1 VALUES (1), (2);--exec $MYSQL_DUMP --skip-comments --compatible=mysql40 test t1--exec $MYSQL_DUMP --skip-comments --compatible=mysql323 test t1DROP TABLE t1;## Bug #2592 'mysqldump doesn't quote "tricky" names correctly'#create table ```a` (i int);--exec $MYSQL_DUMP --compact testdrop table ```a`;## Bug #2591 "mysqldump quotes names inconsistently"#create table t1(a int);--exec $MYSQL_DUMP --comments=0 test--exec $MYSQL_DUMP --comments=0 --compatible=ansi testset global sql_mode='ANSI_QUOTES';--exec $MYSQL_DUMP --comments=0 test--exec $MYSQL_DUMP --comments=0 --compatible=ansi testset global sql_mode='';drop table t1;## Bug #2705 'mysqldump --tab extra output'#create table t1(a int);insert into t1 values (1),(2),(3);--exec $MYSQL_DUMP --skip-comments --tab=$MYSQLTEST_VARDIR/tmp/ test--exec cat $MYSQLTEST_VARDIR/tmp/t1.sql--exec cat $MYSQLTEST_VARDIR/tmp/t1.txt--exec rm $MYSQLTEST_VARDIR/tmp/t1.sql--exec rm $MYSQLTEST_VARDIR/tmp/t1.txt--exec $MYSQL_DUMP --tab=$MYSQLTEST_VARDIR/tmp/ test--exec rm $MYSQLTEST_VARDIR/tmp/t1.sql--exec rm $MYSQLTEST_VARDIR/tmp/t1.txtdrop table t1;## Bug #6101: create database problem#--exec $MYSQL_DUMP --skip-comments --databases testcreate database mysqldump_test_db character set latin2 collate latin2_bin;--exec $MYSQL_DUMP --skip-comments --databases mysqldump_test_dbdrop database mysqldump_test_db;## Bug #7020# Check that we don't dump in UTF8 in compatible mode by default,# but use the default compiled values, or the values given in# --default-character-set=xxx. However, we should dump in UTF8# if it is explicitely set.CREATE TABLE t1 (a  CHAR(10));INSERT INTO t1  VALUES (_latin1 '闹苓');--exec $MYSQL_DUMP --character-sets-dir=$CHARSETSDIR --skip-comments test t1## Bug#8063: make test mysqldump [ fail ]# We cannot tes this command because its output depends# on --default-character-set incompiled into "mysqldump" program.# If the future we can move this command into a separate test with# checking that "mysqldump" is compiled with "latin1"##--exec $MYSQL_DUMP --character-sets-dir=$CHARSETSDIR --skip-comments --compatible=mysql323 test t1--exec $MYSQL_DUMP --character-sets-dir=$CHARSETSDIR --skip-comments --compatible=mysql323 --default-character-set=cp850 test t1--exec $MYSQL_DUMP --character-sets-dir=$CHARSETSDIR --skip-comments --default-character-set=cp850 --compatible=mysql323 test t1--exec $MYSQL_DUMP --character-sets-dir=$CHARSETSDIR --skip-comments --default-character-set=utf8 --compatible=mysql323 test t1DROP TABLE t1;## WL #2319: Exclude Tables from dump#CREATE TABLE t1 (a int);CREATE TABLE t2 (a int);INSERT INTO t1 VALUES (1),(2),(3);INSERT INTO t2 VALUES (4),(5),(6);--exec $MYSQL_DUMP --skip-comments --ignore-table=test.t1 testDROP TABLE t1;DROP TABLE t2;##  Bug  #8830#CREATE TABLE t1 (`b` blob);INSERT INTO `t1` VALUES (0x602010000280100005E71A);--exec $MYSQL_DUMP --skip-extended-insert --hex-blob test --skip-comments t1DROP TABLE t1;## Test for --insert-ignore#CREATE TABLE t1 (a int);INSERT INTO t1 VALUES (1),(2),(3);INSERT INTO t1 VALUES (4),(5),(6);--exec $MYSQL_DUMP --skip-comments --insert-ignore test t1--exec $MYSQL_DUMP --skip-comments --insert-ignore --delayed-insert test t1DROP TABLE t1;## Bug #10286: mysqldump -c crashes on table that has many fields with long# names# create table t1 ( F_c4ca4238a0b923820dcc509a6f75849b int, F_c81e728d9d4c2f636f067f89cc14862c int, F_eccbc87e4b5ce2fe28308fd9f2a7baf3 int, F_a87ff679a2f3e71d9181a67b7542122c int, F_e4da3b7fbbce2345d7772b0674a318d5 int, F_1679091c5a880faf6fb5e6087eb1b2dc int, F_8f14e45fceea167a5a36dedd4bea2543 int, F_c9f0f895fb98ab9159f51fd0297e236d int, F_45c48cce2e2d7fbdea1afc51c7c6ad26 int, F_d3d9446802a44259755d38e6d163e820 int, F_6512bd43d9caa6e02c990b0a82652dca int, F_c20ad4d76fe97759aa27a0c99bff6710 int, F_c51ce410c124a10e0db5e4b97fc2af39 int, F_aab3238922bcc25a6f606eb525ffdc56 int, F_9bf31c7ff062936a96d3c8bd1f8f2ff3 int, F_c74d97b01eae257e44aa9d5bade97baf int, F_70efdf2ec9b086079795c442636b55fb int, F_6f4922f45568161a8cdf4ad2299f6d23 int, F_1f0e3dad99908345f7439f8ffabdffc4 int, F_98f13708210194c475687be6106a3b84 int, F_3c59dc048e8850243be8079a5c74d079 int, F_b6d767d2f8ed5d21a44b0e5886680cb9 int, F_37693cfc748049e45d87b8c7d8b9aacd int, F_1ff1de774005f8da13f42943881c655f int, F_8e296a067a37563370ded05f5a3bf3ec int, F_4e732ced3463d06de0ca9a15b6153677 int, F_02e74f10e0327ad868d138f2b4fdd6f0 int, F_33e75ff09dd601bbe69f351039152189 int, F_6ea9ab1baa0efb9e19094440c317e21b int, F_34173cb38f07f89ddbebc2ac9128303f int, F_c16a5320fa475530d9583c34fd356ef5 int, F_6364d3f0f495b6ab9dcf8d3b5c6e0b01 int, F_182be0c5cdcd5072bb1864cdee4d3d6e int, F_e369853df766fa44e1ed0ff613f563bd int, F_1c383cd30b7c298ab50293adfecb7b18 int, F_19ca14e7ea6328a42e0eb13d585e4c22 int, F_a5bfc9e07964f8dddeb95fc584cd965d int, F_a5771bce93e200c36f7cd9dfd0e5deaa int, F_d67d8ab4f4c10bf22aa353e27879133c int, F_d645920e395fedad7bbbed0eca3fe2e0 int, F_3416a75f4cea9109507cacd8e2f2aefc int, F_a1d0c6e83f027327d8461063f4ac58a6 int, F_17e62166fc8586dfa4d1bc0e1742c08b int, F_f7177163c833dff4b38fc8d2872f1ec6 int, F_6c8349cc7260ae62e3b1396831a8398f int, F_d9d4f495e875a2e075a1a4a6e1b9770f int, F_67c6a1e7ce56d3d6fa748ab6d9af3fd7 int, F_642e92efb79421734881b53e1e1b18b6 int, F_f457c545a9ded88f18ecee47145a72c0 int, F_c0c7c76d30bd3dcaefc96f40275bdc0a int, F_2838023a778dfaecdc212708f721b788 int, F_9a1158154dfa42caddbd0694a4e9bdc8 int, F_d82c8d1619ad8176d665453cfb2e55f0 int, F_a684eceee76fc522773286a895bc8436 int, F_b53b3a3d6ab90ce0268229151c9bde11 int, F_9f61408e3afb633e50cdf1b20de6f466 int, F_72b32a1f754ba1c09b3695e0cb6cde7f int, F_66f041e16a60928b05a7e228a89c3799 int, F_093f65e080a295f8076b1c5722a46aa2 int, F_072b030ba126b2f4b2374f342be9ed44 int, F_7f39f8317fbdb1988ef4c628eba02591 int, F_44f683a84163b3523afe57c2e008bc8c int, F_03afdbd66e7929b125f8597834fa83a4 int, F_ea5d2f1c4608232e07d3aa3d998e5135 int, F_fc490ca45c00b1249bbe3554a4fdf6fb int, F_3295c76acbf4caaed33c36b1b5fc2cb1 int, F_735b90b4568125ed6c3f678819b6e058 int, F_a3f390d88e4c41f2747bfa2f1b5f87db int, F_14bfa6bb14875e45bba028a21ed38046 int, F_7cbbc409ec990f19c78c75bd1e06f215 int, F_e2c420d928d4bf8ce0ff2ec19b371514 int, F_32bb90e8976aab5298d5da10fe66f21d int, F_d2ddea18f00665ce8623e36bd4e3c7c5 int, F_ad61ab143223efbc24c7d2583be69251 int, F_d09bf41544a3365a46c9077ebb5e35c3 int, F_fbd7939d674997cdb4692d34de8633c4 int, F_28dd2c7955ce926456240b2ff0100bde int, F_35f4a8d465e6e1edc05f3d8ab658c551 int, F_d1fe173d08e959397adf34b1d77e88d7 int, F_f033ab37c30201f73f142449d037028d int, F_43ec517d68b6edd3015b3edc9a11367b int, F_9778d5d219c5080b9a6a17bef029331c int, F_fe9fc289c3ff0af142b6d3bead98a923 int, F_68d30a9594728bc39aa24be94b319d21 int, F_3ef815416f775098fe977004015c6193 int, F_93db85ed909c13838ff95ccfa94cebd9 int, F_c7e1249ffc03eb9ded908c236bd1996d int, F_2a38a4a9316c49e5a833517c45d31070 int, F_7647966b7343c29048673252e490f736 int, F_8613985ec49eb8f757ae6439e879bb2a int, F_54229abfcfa5649e7003b83dd4755294 int, F_92cc227532d17e56e07902b254dfad10 int, F_98dce83da57b0395e163467c9dae521b int, F_f4b9ec30ad9f68f89b29639786cb62ef int, F_812b4ba287f5ee0bc9d43bbf5bbe87fb int, F_26657d5ff9020d2abefe558796b99584 int, F_e2ef524fbf3d9fe611d5a8e90fefdc9c int, F_ed3d2c21991e3bef5e069713af9fa6ca int, F_ac627ab1ccbdb62ec96e702f07f6425b int, F_f899139df5e1059396431415e770c6dd int, F_38b3eff8baf56627478ec76a704e9b52 int, F_ec8956637a99787bd197eacd77acce5e int, F_6974ce5ac660610b44d9b9fed0ff9548 int, F_c9e1074f5b3f9fc8ea15d152add07294 int, F_65b9eea6e1cc6bb9f0cd2a47751a186f int, F_f0935e4cd5920aa6c7c996a5ee53a70f int, F_a97da629b098b75c294dffdc3e463904 int, F_a3c65c2974270fd093ee8a9bf8ae7d0b int, F_2723d092b63885e0d7c260cc007e8b9d int, F_5f93f983524def3dca464469d2cf9f3e int, F_698d51a19d8a121ce581499d7b701668 int, F_7f6ffaa6bb0b408017b62254211691b5 int, F_73278a4a86960eeb576a8fd4c9ec6997 int, F_5fd0b37cd7dbbb00f97ba6ce92bf5add int, F_2b44928ae11fb9384c4cf38708677c48 int, F_c45147dee729311ef5b5c3003946c48f int, F_eb160de1de89d9058fcb0b968dbbbd68 int, F_5ef059938ba799aaa845e1c2e8a762bd int, F_07e1cd7dca89a1678042477183b7ac3f int, F_da4fb5c6e93e74d3df8527599fa62642 int, F_4c56ff4ce4aaf9573aa5dff913df997a int, F_a0a080f42e6f13b3a2df133f073095dd int, F_202cb962ac59075b964b07152d234b70 int, F_c8ffe9a587b126f152ed3d89a146b445 int, F_3def184ad8f4755ff269862ea77393dd int, F_069059b7ef840f0c74a814ec9237b6ec int, F_ec5decca5ed3d6b8079e2e7e7bacc9f2 int, F_76dc611d6ebaafc66cc0879c71b5db5c int, F_d1f491a404d6854880943e5c3cd9ca25 int, F_9b8619251a19057cff70779273e95aa6 int, F_1afa34a7f984eeabdbb0a7d494132ee5 int, F_65ded5353c5ee48d0b7d48c591b8f430 int, F_9fc3d7152ba9336a670e36d0ed79bc43 int, F_02522a2b2726fb0a03bb19f2d8d9524d int, F_7f1de29e6da19d22b51c68001e7e0e54 int, F_42a0e188f5033bc65bf8d78622277c4e int, F_3988c7f88ebcb58c6ce932b957b6f332 int, F_013d407166ec4fa56eb1e1f8cbe183b9 int, F_e00da03b685a0dd18fb6a08af0923de0 int, F_1385974ed5904a438616ff7bdb3f7439 int, F_0f28b5d49b3020afeecd95b4009adf4c int, F_a8baa56554f96369ab93e4f3bb068c22 int, F_903ce9225fca3e988c2af215d4e544d3 int, F_0a09c8844ba8f0936c20bd791130d6b6 int, F_2b24d495052a8ce66358eb576b8912c8 int, F_a5e00132373a7031000fd987a3c9f87b int, F_8d5e957f297893487bd98fa830fa6413 int, F_47d1e990583c9c67424d369f3414728e int, F_f2217062e9a397a1dca429e7d70bc6ca int, F_7ef605fc8dba5425d6965fbd4c8fbe1f int, F_a8f15eda80c50adb0e71943adc8015cf int, F_37a749d808e46495a8da1e5352d03cae int, F_b3e3e393c77e35a4a3f3cbd1e429b5dc int, F_1d7f7abc18fcb43975065399b0d1e48e int, F_2a79ea27c279e471f4d180b08d62b00a int, F_1c9ac0159c94d8d0cbedc973445af2da int, F_6c4b761a28b734fe93831e3fb400ce87 int, F_06409663226af2f3114485aa4e0a23b4 int, F_140f6969d5213fd0ece03148e62e461e int, F_b73ce398c39f506af761d2277d853a92 int, F_bd4c9ab730f5513206b999ec0d90d1fb int, F_82aa4b0af34c2313a562076992e50aa3 int, F_0777d5c17d4066b82ab86dff8a46af6f int, F_fa7cdfad1a5aaf8370ebeda47a1ff1c3 int, F_9766527f2b5d3e95d4a733fcfb77bd7e int,

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -