mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 14:54:20 +01:00
68b51ff01c
mysql-test/extra/rpl_tests/rpl_insert_id.test: Updated wiht 1022 error, order by and PK for use with NDB engine mysql-test/r/rpl_insert_id.result: Updated wiht 1022 error, order by and PK for use with NDB engine mysql-test/t/rpl_skip_error.test: updated to wrk with ndb mysql-test/r/rpl_skip_error.result: updated to wrk with ndb mysql-test/t/rpl_sporadic_master.test: updated to wrk with ndb mysql-test/r/rpl_sporadic_master.result: updated to wrk with ndb mysql-test/t/rpl_row_trig002.test: updated to work with NDB engine mysql-test/r/rpl_row_trig002.result: updated to work with NDB engine mysql-test/t/rpl_temporary.test: updated to work with NDB engine mysql-test/r/rpl_temporary.result: updated to work with NDB engine mysql-test/extra/rpl_tests/rpl_row_001.test: updated to work with NDB as default engine mysql-test/r/rpl_row_001.result: updated to work with NDB as default engine mysql-test/t/rpl_row_blob_innodb.test: Fixed bug in test case mysql-test/t/rpl_row_blob_innodb-slave.opt: Added slave option file to ensure correct engine type on slave mysql-test/r/rpl_row_blob_innodb.result: Updated results mysql-test/r/rpl_row_blob_myisam.result: Updated results mysql-test/r/rpl_ndb_log.result: update results file
55 lines
1 KiB
Text
55 lines
1 KiB
Text
stop slave;
|
|
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
|
|
reset master;
|
|
reset slave;
|
|
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
|
|
start slave;
|
|
CREATE TABLE t1 (word CHAR(20) NOT NULL);
|
|
LOAD DATA INFILE '../../std_data/words.dat' INTO TABLE t1;
|
|
LOAD DATA LOCAL INFILE 'MYSQL_TEST_DIR/std_data/words.dat' INTO TABLE t1;
|
|
SELECT * FROM t1 ORDER BY word LIMIT 10;
|
|
word
|
|
Aarhus
|
|
Aarhus
|
|
Aarhus
|
|
Aarhus
|
|
Aaron
|
|
Aaron
|
|
Aaron
|
|
Aaron
|
|
Ababa
|
|
Ababa
|
|
STOP SLAVE;
|
|
SET PASSWORD FOR root@"localhost" = PASSWORD('foo');
|
|
START SLAVE;
|
|
SET PASSWORD FOR root@"localhost" = PASSWORD('');
|
|
CREATE TABLE t3(n INT);
|
|
INSERT INTO t3 VALUES(1),(2);
|
|
SELECT * FROM t3 ORDER BY n;
|
|
n
|
|
1
|
|
2
|
|
SELECT SUM(LENGTH(word)) FROM t1;
|
|
SUM(LENGTH(word))
|
|
1022
|
|
DROP TABLE t1,t3;
|
|
CREATE TABLE t1 (n INT) ENGINE=MYISAM;
|
|
RESET MASTER;
|
|
STOP SLAVE;
|
|
RESET SLAVE;
|
|
SELECT COUNT(*) FROM t1;
|
|
COUNT(*)
|
|
5000
|
|
LOCK TABLES t1 READ;
|
|
START SLAVE;
|
|
UNLOCK TABLES;
|
|
SELECT COUNT(*) FROM t1;
|
|
COUNT(*)
|
|
5000
|
|
DROP TABLE t1;
|
|
CREATE TABLE t1 (n INT);
|
|
INSERT INTO t1 VALUES(3456);
|
|
SELECT n FROM t1;
|
|
n
|
|
3456
|
|
DROP TABLE t1;
|