[ Avaa Bypassed ]




Upload:

Command:

hmhc3928@3.145.61.142: ~ $
################################################################################
# t/partition_basic_innodb.test                                                #
#                                                                              #
# Purpose:                                                                     #
#  Tests around Create Partitioned table using DATA/INDEX DIR                  #
#        InnoDB branch                                                         #
#                                                                              #
#------------------------------------------------------------------------------#
# Original Author: mleich                                                      #
# Original Date: 2006-03-05                                                    #
# Change Author: mattiasj                                                      #
# Change Date: 2008-02-05                                                      #
# Change: copied it from partition_basic_innodb.test and kept DATA DIR         #
# Change Author: mattiasj                                                      #
# Change Date: 2008-03-16                                                      #
# Change: Replaced all test with alter -> myisam, since innodb does not support#
# Change Author: Kevin lewis                                                   #
# Change Date: 2012-03-02                                                      #
# Change: WL5980 activates DATA DIRECTORY for InnoDB                           #
################################################################################

# NOTE: As of WL5980, InnoDB supports DATA DIRECTORY, but not INDEX DIRECTORY.
#       See innodb.innodb-tablespace for tests using partition engine, innodb
#       and DATADIRECTORY.  The purpose of this test is to show that a
#       partitioned table remembers the DATA/INDEX DIR and it is used if
#       altered to MyISAM
#
--echo #
--echo # Verify that the DATA/INDEX DIR is stored and used if ALTER to MyISAM.
--echo #
--source include/have_innodb.inc
# The server must support partitioning.
--source include/have_partition.inc
# The server must support symlink for DATA/INDEX DIRECTORY.
--source include/have_symlink.inc
# windows does not support symlink for DATA/INDEX DIRECTORY.
--source include/not_windows.inc

# Does not work with --embedded
--source include/not_embedded.inc

--disable_query_log
let $MYSQLD_DATADIR= `select @@datadir`;

# These values can change during the test
LET $innodb_file_per_table_orig=`select @@innodb_file_per_table`;
LET $innodb_strict_mode_orig=`select @@session.innodb_strict_mode`;
--enable_query_log

--disable_warnings
DROP TABLE IF EXISTS t1;
--enable_warnings

--mkdir $MYSQLTEST_VARDIR/mysql-test-data-dir
--mkdir $MYSQLTEST_VARDIR/mysql-test-idx-dir

SET SESSION innodb_strict_mode = ON;

--echo #
--echo # InnoDB only supports DATA DIRECTORY with innodb_file_per_table=ON
--echo #
SET GLOBAL innodb_file_per_table = OFF;
--replace_result $MYSQLTEST_VARDIR MYSQLTEST_VARDIR
--error ER_ILLEGAL_HA
eval CREATE TABLE t1 (c1 INT)  ENGINE = InnoDB
PARTITION BY HASH (c1) (
  PARTITION p0
    DATA DIRECTORY = '$MYSQLTEST_VARDIR/mysql-test-data-dir'
    INDEX DIRECTORY = '$MYSQLTEST_VARDIR/mysql-test-idx-dir',
  PARTITION p1
    DATA DIRECTORY = '$MYSQLTEST_VARDIR/mysql-test-data-dir'
    INDEX DIRECTORY = '$MYSQLTEST_VARDIR/mysql-test-idx-dir'
);
--replace_result ./ MYSQLD_DATADIR/  $MYSQLD_DATADIR MYSQLD_DATADIR
SHOW WARNINGS;

--echo #
--echo # InnoDB is different from MyISAM in that it uses a text file
--echo # with an '.isl' extension instead of a symbolic link so that
--echo # the tablespace can be re-located on any OS. Also, instead of
--echo # putting the file directly into the DATA DIRECTORY,
--echo # it adds a folder under it with the name of the database.
--echo # Since strict mode is off, InnoDB ignores the INDEX DIRECTORY
--echo # and it is no longer part of the definition.
--echo #
SET SESSION innodb_strict_mode = OFF;
SET GLOBAL innodb_file_per_table = ON;
--replace_result $MYSQLTEST_VARDIR MYSQLTEST_VARDIR
eval CREATE TABLE t1 (c1 INT) ENGINE = InnoDB
PARTITION BY HASH (c1)
(PARTITION p0
 DATA DIRECTORY = '$MYSQLTEST_VARDIR/mysql-test-data-dir'
 INDEX DIRECTORY = '$MYSQLTEST_VARDIR/mysql-test-idx-dir',
 PARTITION p1
 DATA DIRECTORY = '$MYSQLTEST_VARDIR/mysql-test-data-dir'
 INDEX DIRECTORY = '$MYSQLTEST_VARDIR/mysql-test-idx-dir'
);
SHOW WARNINGS;

--echo # Verifying .frm, .par, .isl & .ibd files
--echo ---- MYSQLD_DATADIR/test
--list_files $MYSQLD_DATADIR/test
--echo ---- MYSQLTEST_VARDIR/mysql-test-data-dir/test
--list_files $MYSQLTEST_VARDIR/mysql-test-data-dir/test
--echo # The ibd tablespaces should not be directly under the DATA DIRECTORY
--echo ---- MYSQLTEST_VARDIR/mysql-test-data-dir
--list_files $MYSQLTEST_VARDIR/mysql-test-data-dir
--echo ---- MYSQLTEST_VARDIR/mysql-test-idx-dir
--list_files $MYSQLTEST_VARDIR/mysql-test-idx-dir

FLUSH TABLES;
--replace_result $MYSQLTEST_VARDIR MYSQLTEST_VARDIR
SHOW CREATE TABLE t1;

--echo #
--echo # Verify that the DATA/INDEX DIRECTORY is stored and used if we
--echo # ALTER TABLE to MyISAM.
--echo #
ALTER TABLE t1 engine=MyISAM;
--replace_result $MYSQLTEST_VARDIR MYSQLTEST_VARDIR
SHOW CREATE TABLE t1;
--echo # Verifying .frm, .par and MyISAM files (.MYD, MYI)
--echo ---- MYSQLD_DATADIR/test
--list_files $MYSQLD_DATADIR/test
--echo ---- MYSQLTEST_VARDIR/mysql-test-data-dir
--list_files $MYSQLTEST_VARDIR/mysql-test-data-dir
--echo ---- MYSQLTEST_VARDIR/mysql-test-idx-dir
--list_files $MYSQLTEST_VARDIR/mysql-test-idx-dir

--echo #
--echo # Now verify that the DATA DIRECTORY is used again if we
--echo # ALTER TABLE back to InnoDB.
--echo #
SET SESSION innodb_strict_mode = ON;
ALTER TABLE t1 engine=InnoDB;
--replace_result $MYSQLTEST_VARDIR MYSQLTEST_VARDIR
SHOW CREATE TABLE t1;
--echo # Verifying .frm, .par, .isl and InnoDB .ibd files
--echo ---- MYSQLD_DATADIR/test
--list_files $MYSQLD_DATADIR/test
--echo ---- MYSQLTEST_VARDIR/mysql-test-data-dir
--list_files $MYSQLTEST_VARDIR/mysql-test-data-dir
--echo ---- MYSQLTEST_VARDIR/mysql-test-idx-dir
--list_files $MYSQLTEST_VARDIR/mysql-test-idx-dir
--echo ---- MYSQLTEST_VARDIR/mysql-test-data-dir/test
--list_files $MYSQLTEST_VARDIR/mysql-test-data-dir/test

DROP TABLE t1;

--echo #
--echo # Cleanup
--echo #

--rmdir $MYSQLTEST_VARDIR/mysql-test-data-dir/test
--rmdir $MYSQLTEST_VARDIR/mysql-test-data-dir
--rmdir $MYSQLTEST_VARDIR/mysql-test-idx-dir

--disable_query_log
EVAL SET GLOBAL innodb_file_per_table=$innodb_file_per_table_orig;
EVAL SET SESSION innodb_strict_mode=$innodb_strict_mode_orig;
--enable_query_log




Filemanager

Name Type Size Permission Actions
disabled.def File 1.37 KB 0644
part_blocked_sql_func_innodb.test File 2 KB 0644
part_blocked_sql_func_myisam.test File 1.96 KB 0644
part_ctype_utf32.test File 1.42 KB 0644
part_supported_sql_func_innodb.test File 2.15 KB 0644
part_supported_sql_func_myisam.test File 1.98 KB 0644
partition-dml-1-1-innodb-modes.test File 387 B 0644
partition-dml-1-1-innodb.test File 305 B 0644
partition-dml-1-1-myisam-modes.test File 266 B 0644
partition-dml-1-1-myisam.test File 184 B 0644
partition-dml-1-10-innodb.test File 102 B 0644
partition-dml-1-10-myisam.test File 69 B 0644
partition-dml-1-11-innodb.test File 306 B 0644
partition-dml-1-11-myisam.test File 185 B 0644
partition-dml-1-2-innodb.test File 101 B 0644
partition-dml-1-2-myisam.test File 68 B 0644
partition-dml-1-3-innodb.test File 101 B 0644
partition-dml-1-4-innodb.test File 101 B 0644
partition-dml-1-5-innodb.test File 101 B 0644
partition-dml-1-6-innodb.test File 101 B 0644
partition-dml-1-7-innodb.test File 101 B 0644
partition-dml-1-8-innodb.test File 101 B 0644
partition-dml-1-9-innodb.test File 217 B 0644
partition-dml-1-9-myisam.test File 184 B 0644
partition_alter1_1_2_innodb.test File 3.7 KB 0644
partition_alter1_1_2_myisam.test File 3.41 KB 0644
partition_alter1_1_innodb.test File 3.61 KB 0644
partition_alter1_1_myisam.test File 3.41 KB 0644
partition_alter1_2_innodb.test File 3.7 KB 0644
partition_alter1_2_myisam.test File 3.41 KB 0644
partition_alter2_1_1_innodb.test File 3.51 KB 0644
partition_alter2_1_2_innodb.test File 3.51 KB 0644
partition_alter2_1_myisam.test File 3.24 KB 0644
partition_alter2_2_1_innodb.test File 3.53 KB 0644
partition_alter2_2_2_innodb.test File 3.51 KB 0644
partition_alter2_2_myisam.test File 3.24 KB 0644
partition_alter3_innodb.test File 3.24 KB 0644
partition_alter3_myisam.test File 3.21 KB 0644
partition_alter4_innodb.test File 3.44 KB 0644
partition_alter4_myisam.test File 3.33 KB 0644
partition_auto_increment_archive.test File 1.88 KB 0644
partition_auto_increment_blackhole.test File 1.77 KB 0644
partition_auto_increment_innodb.test File 1.76 KB 0644
partition_auto_increment_memory.test File 1.73 KB 0644
partition_auto_increment_myisam.test File 1.73 KB 0644
partition_basic_innodb.test File 3.5 KB 0644
partition_basic_myisam.test File 3.17 KB 0644
partition_basic_symlink_innodb.test File 6.5 KB 0644
partition_basic_symlink_myisam.test File 3.57 KB 0644
partition_bit_innodb.test File 2.4 KB 0644
partition_bit_myisam.test File 2.37 KB 0644
partition_char_innodb.test File 2.4 KB 0644
partition_char_myisam.test File 2.37 KB 0644
partition_datetime_innodb.test File 2.27 KB 0644
partition_datetime_myisam.test File 2.24 KB 0644
partition_debug.test File 2.47 KB 0644
partition_debug_innodb-master.opt File 53 B 0644
partition_debug_innodb.test File 3.64 KB 0644
partition_debug_myisam.test File 568 B 0644
partition_debug_sync_innodb-master.opt File 26 B 0644
partition_debug_sync_innodb.test File 2.71 KB 0644
partition_decimal_innodb.test File 2.1 KB 0644
partition_decimal_myisam.test File 2.23 KB 0644
partition_engine_innodb.test File 3.24 KB 0644
partition_engine_myisam.test File 3.14 KB 0644
partition_exch_innodb.test File 242 B 0644
partition_exch_myisam.test File 209 B 0644
partition_exch_myisam_innodb.test File 442 B 0644
partition_exch_qa.test File 209 B 0644
partition_exch_qa_10.test File 1.69 KB 0644
partition_exch_qa_11.test File 844 B 0644
partition_exch_qa_12.test File 6.22 KB 0644
partition_exch_qa_13.test File 212 B 0644
partition_exch_qa_14.test File 2.42 KB 0644
partition_exch_qa_15.test File 800 B 0644
partition_exch_qa_1_innodb.test File 244 B 0644
partition_exch_qa_1_myisam.test File 211 B 0644
partition_exch_qa_2.test File 2.38 KB 0644
partition_exch_qa_3.test File 934 B 0644
partition_exch_qa_4_innodb.test File 244 B 0644
partition_exch_qa_4_myisam.test File 211 B 0644
partition_exch_qa_5_innodb.test File 244 B 0644
partition_exch_qa_5_myisam.test File 211 B 0644
partition_exch_qa_6.test File 2.88 KB 0644
partition_exch_qa_7_innodb.test File 244 B 0644
partition_exch_qa_7_myisam.test File 211 B 0644
partition_exch_qa_8_innodb.test File 244 B 0644
partition_exch_qa_8_myisam.test File 211 B 0644
partition_exchange_archive.test File 293 B 0644
partition_exchange_blackhole.test File 703 B 0644
partition_exchange_innodb.test File 178 B 0644
partition_exchange_memory.test File 145 B 0644
partition_exchange_myisam.test File 145 B 0644
partition_float_innodb.test File 2.14 KB 0644
partition_float_myisam.test File 2.2 KB 0644
partition_innodb_status_file-master.opt File 23 B 0644
partition_innodb_status_file.test File 563 B 0644
partition_int_innodb.test File 2.27 KB 0644
partition_int_myisam.test File 2.41 KB 0644
partition_max_parts_hash_innodb-master.opt File 59 B 0644
partition_max_parts_hash_innodb.test File 1.19 KB 0644
partition_max_parts_hash_myisam-master.opt File 59 B 0644
partition_max_parts_hash_myisam.test File 1.16 KB 0644
partition_max_parts_inv_innodb-master.opt File 59 B 0644
partition_max_parts_inv_innodb.test File 1.19 KB 0644
partition_max_parts_inv_myisam-master.opt File 59 B 0644
partition_max_parts_inv_myisam.test File 1.15 KB 0644
partition_max_parts_key_innodb-master.opt File 59 B 0644
partition_max_parts_key_innodb.test File 1.27 KB 0644
partition_max_parts_key_myisam-master.opt File 59 B 0644
partition_max_parts_key_myisam.test File 1.23 KB 0644
partition_max_parts_list_innodb-master.opt File 59 B 0644
partition_max_parts_list_innodb.test File 1.19 KB 0644
partition_max_parts_list_myisam-master.opt File 59 B 0644
partition_max_parts_list_myisam.test File 1.16 KB 0644
partition_max_parts_range_innodb-master.opt File 59 B 0644
partition_max_parts_range_innodb.test File 1.19 KB 0644
partition_max_parts_range_myisam-master.opt File 59 B 0644
partition_max_parts_range_myisam.test File 1.16 KB 0644
partition_max_sub_parts_key_list_innodb-master.opt File 59 B 0644
partition_max_sub_parts_key_list_innodb.test File 1.28 KB 0644
partition_max_sub_parts_key_list_myisam-master.opt File 59 B 0644
partition_max_sub_parts_key_list_myisam.test File 1.24 KB 0644
partition_max_sub_parts_key_range_innodb-master.opt File 59 B 0644
partition_max_sub_parts_key_range_innodb.test File 1.28 KB 0644
partition_max_sub_parts_key_range_myisam-master.opt File 59 B 0644
partition_max_sub_parts_key_range_myisam.test File 1.24 KB 0644
partition_max_sub_parts_list_innodb-master.opt File 59 B 0644
partition_max_sub_parts_list_innodb.test File 1.44 KB 0644
partition_max_sub_parts_list_myisam-master.opt File 59 B 0644
partition_max_sub_parts_list_myisam.test File 1.16 KB 0644
partition_max_sub_parts_range_innodb-master.opt File 59 B 0644
partition_max_sub_parts_range_innodb.test File 1.36 KB 0644
partition_max_sub_parts_range_myisam-master.opt File 59 B 0644
partition_max_sub_parts_range_myisam.test File 1.16 KB 0644
partition_mgm_lc0_archive.test File 2.01 KB 0644
partition_mgm_lc0_innodb.test File 1.99 KB 0644
partition_mgm_lc0_memory.test File 1.99 KB 0644
partition_mgm_lc0_myisam.test File 1.99 KB 0644
partition_mgm_lc1_archive-master.opt File 27 B 0644
partition_mgm_lc1_archive.test File 1.8 KB 0644
partition_mgm_lc1_innodb-master.opt File 27 B 0644
partition_mgm_lc1_innodb.test File 1.78 KB 0644
partition_mgm_lc1_memory-master.opt File 27 B 0644
partition_mgm_lc1_memory.test File 1.78 KB 0644
partition_mgm_lc1_myisam-master.opt File 27 B 0644
partition_mgm_lc1_myisam.test File 1.78 KB 0644
partition_mgm_lc2_archive-master.opt File 27 B 0644
partition_mgm_lc2_archive.test File 1.8 KB 0644
partition_mgm_lc2_innodb-master.opt File 27 B 0644
partition_mgm_lc2_innodb.test File 1.78 KB 0644
partition_mgm_lc2_memory-master.opt File 27 B 0644
partition_mgm_lc2_memory.test File 1.78 KB 0644
partition_mgm_lc2_myisam-master.opt File 27 B 0644
partition_mgm_lc2_myisam.test File 1.78 KB 0644
partition_recover_myisam-master.opt File 17 B 0644
partition_recover_myisam.test File 1.6 KB 0644
partition_reorganize_innodb.test File 5.76 KB 0644
partition_reorganize_myisam.test File 3.61 KB 0644
partition_repair_myisam.test File 12.45 KB 0644
partition_special_innodb-master.opt File 55 B 0644
partition_special_innodb.test File 7.1 KB 0644
partition_special_myisam.test File 3.12 KB 0644
partition_syntax_innodb.test File 3.25 KB 0644
partition_syntax_myisam.test File 3.14 KB 0644
partition_value_innodb.test File 3.4 KB 0644
partition_value_myisam.test File 3.36 KB 0644
rpl-partition-dml-1-1-innodb.test File 250 B 0644
rpl-partition-dml-1-1-myisam.test File 216 B 0644
rpl_partition.test File 5.26 KB 0644