1
by brian
clean slate |
1 |
stop slave; |
2 |
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9; |
|
3 |
reset master; |
|
4 |
reset slave; |
|
5 |
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9; |
|
6 |
start slave; |
|
7 |
drop database if exists mysqltest; |
|
8 |
USE test; |
|
9 |
CREATE TABLE t1(a INT, b INT, UNIQUE(b)); |
|
10 |
LOAD DATA INFILE '../std_data_ln/rpl_loaddata.dat' INTO TABLE test.t1; |
|
11 |
SELECT COUNT(*) FROM test.t1; |
|
12 |
COUNT(*) |
|
13 |
2
|
|
14 |
CREATE DATABASE mysqltest; |
|
15 |
USE mysqltest; |
|
16 |
CREATE TABLE t1(a INT, b INT, UNIQUE(b)); |
|
17 |
LOAD DATA INFILE '../std_data_ln/rpl_loaddata.dat' INTO TABLE mysqltest.t1; |
|
18 |
SELECT COUNT(*) FROM mysqltest.t1; |
|
19 |
COUNT(*) |
|
20 |
2
|
|
21 |
SHOW DATABASES; |
|
22 |
Database
|
|
23 |
information_schema
|
|
24 |
mysql
|
|
25 |
mysqltest
|
|
26 |
test
|
|
27 |
USE test; |
|
28 |
SHOW TABLES; |
|
29 |
Tables_in_test
|
|
30 |
USE mysqltest; |
|
31 |
SHOW TABLES; |
|
32 |
Tables_in_mysqltest
|
|
33 |
t1
|
|
34 |
SELECT COUNT(*) FROM mysqltest.t1; |
|
35 |
COUNT(*) |
|
36 |
2
|
|
37 |
DROP DATABASE mysqltest; |
|
38 |
DROP TABLE test.t1; |