1
DROP SCHEMA IF EXISTS drizzledump_migrate_test1;
2
DROP SCHEMA IF EXISTS drizzledump_migrate_test2;
3
DROP SCHEMA IF EXISTS drizzledump_migrate_test3;
4
CREATE SCHEMA tmp_test;
7
Dropping test database on MySQL...
8
Create test database on MySQL...
9
populating MySQL with test data...
10
calling drizzledump to populate Drizzle...
11
../client/drizzledump --compact --host=127.0.0.1 --port=13000 --destination-type=database --destination-host=localhost --destination-port=9306 --destination-user=root --user=root --all-databases;
16
drizzledump_migrate_test1
17
drizzledump_migrate_test2
18
drizzledump_migrate_test3
25
SHOW CREATE TABLE drizzledump_migrate_test1.t1;
27
t1 CREATE TABLE `t1` (
29
`b` VARCHAR(10) COLLATE utf8_general_ci DEFAULT NULL
30
) ENGINE=InnoDB COLLATE = utf8_general_ci
31
SHOW CREATE TABLE drizzledump_migrate_test1.t2;
33
t2 CREATE TABLE `t2` (
35
`b` VARCHAR(10) COLLATE utf8_general_ci DEFAULT NULL
36
) ENGINE=InnoDB COLLATE = utf8_general_ci
37
SHOW CREATE TABLE drizzledump_migrate_test2.t1;
39
t1 CREATE TABLE `t1` (
41
`b` VARCHAR(10) COLLATE utf8_general_ci DEFAULT NULL
42
) ENGINE=InnoDB COLLATE = utf8_general_ci
43
SHOW CREATE TABLE drizzledump_migrate_test2.t2;
45
t2 CREATE TABLE `t2` (
47
`b` VARCHAR(10) COLLATE utf8_general_ci DEFAULT NULL
48
) ENGINE=InnoDB COLLATE = utf8_general_ci
49
The table_name is a lie!
50
SHOW CREATE TABLE drizzledump_migrate_test3.not_on_drizzle;
52
not_on_drizzle CREATE TABLE `not_on_drizzle` (
53
`a` VARCHAR(50) COLLATE utf8_general_ci DEFAULT NULL
54
) ENGINE=InnoDB COLLATE = utf8_general_ci
55
SELECT * FROM drizzledump_migrate_test1.t1;
60
SELECT * FROM drizzledump_migrate_test1.t2;
67
SELECT * FROM drizzledump_migrate_test2.t1;
71
SELECT * FROM drizzledump_migrate_test2.t2;
75
The table_name is a lie!
76
SELECT * FROM drizzledump_migrate_test3.not_on_drizzle;
78
You shouldnt see this on Drizzle
79
Dropping test database on MySQL...
80
DROP SCHEMA drizzledump_migrate_test1;
81
DROP SCHEMA drizzledump_migrate_test2;
82
DROP SCHEMA drizzledump_migrate_test3;