1
source include/master-slave.inc;
6
CREATE TABLE `visits` (
7
`visits_id` int(11) unsigned NOT NULL AUTO_INCREMENT,
8
`myid` varchar(32) NOT NULL DEFAULT '',
9
`src` varchar(64) NOT NULL DEFAULT '',
10
`ip` int(10) unsigned NOT NULL DEFAULT '0',
11
`cc` char(2) NOT NULL DEFAULT '',
12
`org` varchar(80) DEFAULT NULL,
13
`ref` varchar(255) NOT NULL DEFAULT '',
14
`time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
15
`host` varchar(30) NOT NULL DEFAULT '',
16
`entry` varchar(255) NOT NULL DEFAULT '',
17
`visit_exit` varchar(255) NOT NULL DEFAULT '',
18
`user_id` int(11) unsigned NOT NULL DEFAULT '0',
19
`visit_start` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
20
PRIMARY KEY (`visits_id`),
23
KEY `user_id` (`user_id`)
24
) ENGINE=MyISAM AUTO_INCREMENT=21293381 DEFAULT CHARSET=latin1;
26
CREATE TABLE `visits_events` (
27
`event_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
28
`visit_id` int(11) unsigned NOT NULL DEFAULT '0',
29
`timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
30
`src` varchar(64) NOT NULL DEFAULT '',
31
`data` varchar(255) NOT NULL DEFAULT '',
32
`visits_events_id` int(11) unsigned NOT NULL AUTO_INCREMENT,
33
PRIMARY KEY (`visits_events_id`),
34
KEY `event_id` (`event_id`),
35
KEY `visit_id` (`visit_id`),
37
) ENGINE=MyISAM AUTO_INCREMENT=33900731 DEFAULT CHARSET=latin1;
39
/*!40019 SET @@session.max_insert_delayed_threads=0*/;
40
/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
44
#071204 14:29:31 server id 1 end_log_pos 106
45
# Position Timestamp Type Master ID Size Master Pos Flags
46
# 4 3b 56 55 47 0f 01 00 00 00 66 00 00 00 6a 00 00 00 00 00
47
# 17 04 00 35 2e 31 2e 32 33 2d 72 63 2d 64 65 62 75 |..5.1.23.rc.debu|
48
# 27 67 2d 6c 6f 67 00 00 00 00 00 00 00 00 00 00 00 |g.log...........|
49
# 37 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
50
# 47 00 00 00 00 3b 56 55 47 13 38 0d 00 08 00 12 00 |.....VUG.8......|
51
# 57 04 04 04 04 12 00 00 53 00 04 1a 08 00 00 00 08 |.......S........|
53
# Start: binlog v 4, server v 5.1.23-rc-debug-log created 071204 14:29:31 at startup
56
O1ZVRw8BAAAAZgAAAGoAAAAAAAQANS4xLjIzLXJjLWRlYnVnLWxvZwAAAAAAAAAAAAAAAAAAAAAA
57
AAAAAAAAAAAAAAAAAAA7VlVHEzgNAAgAEgAEBAQEEgAAUwAEGggAAAAICAgC
62
#7918 3:59:2 server id 436 end_log_pos 164170679
63
# 9c90b7f 06 4d ef 46 13 b4 01 00 00 38 00 00 00 b7 0b c9 |.M.F.....8......|
64
# 9c90b8f 09 00 00 99 57 17 02 00 00 00 00 05 74 72 61 63 |....W.......trac|
65
# 9c90b9f 6b 00 0d 76 69 |k..vi|
66
# Table_map: `track`.`visits_events` mapped to number 35084185
67
#7918 3:59:2 server id 436 end_log_pos 164170769
68
# 9c90bb7 06 4d ef 46 17 b4 01 00 00 5a 00 00 00 11 0c c9 |.M.F.....Z......|
69
# 9c90bc7 09 10 00 99 57 17 02 00 00 01 00 06 ff c0 20 4e |....W..........N|
70
# 9c90bd7 00 be f5 43 01 06 4d ef 46 00 2b 44 6f 77 6e 6c |...C..M.F..Downl|
71
# 9c90be7 6f 61 64 73 2f 4d 79 53 51 4c 2d 34 2e 31 2f 6d |oads.MySQL.4.1.m|
72
# 9c90bf7 79 73 71 6c 2d 34 2e |ysql.4.|
73
# Write_rows: table id 35084185 flags: STMT_END_F
76
Bk3vRhO0AQAAOAAAALcLyQkAAJlXFwIAAAAABXRyYWNrAA12aXNpdHNfZXZlbnRzAAYJAwcPDwM=
77
Bk3vRhe0AQAAWgAAABEMyQkQAJlXFwIAAAEABv/AIE4AvvVDAQZN70YAK0Rvd25sb2Fkcy9NeVNR
78
TC00LjEvbXlzcWwtNC4xLjEyYS13aW4zMi56aXBPaAIC
81
#7918 3:59:2 server id 436 end_log_pos 164170797
82
# 9c90c11 06 4d ef 46 05 b4 01 00 00 |.M.F.....|
84
SET INSERT_ID=21231039/*!*/;
86
#7918 3:59:2 server id 436 end_log_pos 164171293
87
# 9c90c2d 06 4d ef 46 02 b4 01 00 00 f0 01 00 00 1d 0e c9 |.M.F............|
88
# 9c90c3d 09 10 00 28 80 af 01 00 00 00 00 05 00 00 1f 00 |................|
89
# 9c90c4d 00 00 40 00 00 01 00 00 00 00 00 00 00 00 06 03 |................|
90
# 9c90c5d 73 74 64 04 08 00 08 00 08 00 05 03 55 54 43 74 |std.........UTCt|
91
# 9c90c6d 72 61 63 6b 00 49 4e 53 45 52 54 20 49 4e 54 4f |rack.INSERT.INTO|
92
# 9c90c7d 20 76 69 73 69 74 73 20 28 6d 79 69 64 2c 20 75 |.visits..myid..u|
93
# 9c90c8d 73 65 72 5f 69 64 2c 20 73 72 63 2c 20 69 70 2c |ser.id..src..ip.|
94
# 9c90c9d 20 63 63 2c 20 6f 72 67 2c 20 72 65 66 2c 20 74 |.cc..org..ref..t|
95
# 9c90cad 69 6d 65 2c 20 68 6f 73 74 2c 20 65 6e 74 72 79 |ime..host..entry|
96
# 9c90cbd 2c 20 76 69 73 69 74 5f 65 78 69 74 2c 20 76 69 |..visit.exit..vi|
97
# 9c90ccd 73 69 74 5f 73 74 61 72 74 29 0a 09 09 09 56 41 |sit.start.....VA|
98
# 9c90cdd 4c 55 45 53 20 28 27 33 6d 33 6c 34 72 68 73 36 |LUES...3m3l4rhs6|
99
# 9c90ced 64 6f 30 73 66 35 70 31 69 39 6c 72 39 34 67 39 |do0sf5p1i9lr94g9|
100
# 9c90cfd 32 38 61 32 37 32 76 27 2c 20 27 27 2c 20 27 27 |28a272v.........|
101
# 9c90d0d 2c 20 49 4e 45 54 5f 41 54 4f 4e 28 27 37 31 2e |..INET.ATON..71.|
102
# 9c90d1d 31 31 38 2e 31 32 34 2e 39 38 27 29 2c 20 27 27 |118.124.98......|
103
# 9c90d2d 2c 20 27 27 2c 20 27 68 74 74 70 3a 2f 2f 64 65 |.......http...de|
104
# 9c90d3d 76 2e 6d 79 73 71 6c 2e 63 6f 6d 2f 64 6f 77 6e |v.mysql.com.down|
105
# 9c90d4d 6c 6f 61 64 73 2f 63 6f 6e 6e 65 63 74 6f 72 2f |loads.connector.|
106
# 9c90d5d 6a 2f 33 2e 30 2e 68 74 6d 6c 27 2c 20 4e 55 4c |j.3.0.html...NUL|
107
# 9c90d6d 4c 2c 20 27 64 65 76 2e 6d 79 73 71 6c 2e 63 6f |L...dev.mysql.co|
108
# 9c90d7d 6d 27 2c 20 27 2f 67 65 74 2f 44 6f 77 6e 6c 6f |m.....get.Downlo|
109
# 9c90d8d 61 64 73 2f 43 6f 6e 6e 65 63 74 6f 72 2d 4a 2f |ads.Connector.J.|
110
# 9c90d9d 6d 79 73 71 6c 2d 63 6f 6e 6e 65 63 74 6f 72 2d |mysql.connector.|
111
# 9c90dad 6a 61 76 61 2d 33 2e 30 2e 31 37 2d 67 61 2e 7a |java.3.0.17.ga.z|
112
# 9c90dbd 69 70 2f 66 72 6f 6d 2f 70 69 63 6b 27 2c 20 27 |ip.from.pick....|
113
# 9c90dcd 2f 67 65 74 2f 44 6f 77 6e 6c 6f 61 64 73 2f 43 |.get.Downloads.C|
114
# 9c90ddd 6f 6e 6e 65 63 74 6f 72 2d 4a 2f 6d 79 73 71 6c |onnector.J.mysql|
115
# 9c90ded 2d 63 6f 6e 6e 65 63 74 6f 72 2d 6a 61 76 61 2d |.connector.java.|
116
# 9c90dfd 33 2e 30 2e 31 37 2d 67 61 2e 7a 69 70 |3.0.17.ga.zip|
117
# Query thread_id=28278824 exec_time=0 error_code=0
119
SET TIMESTAMP=1190087942/*!*/;
120
SET @@session.foreign_key_checks=1, @@session.sql_auto_is_null=1, @@session.unique_checks=1/*!*/;
121
SET @@session.sql_mode=0/*!*/;
122
SET @@session.character_set_client=8,@@session.collation_connection=8,@@session.collation_server=8/*!*/;
123
SET @@session.time_zone='UTC'/*!*/;
124
INSERT INTO visits (myid, user_id, src, ip, cc, org, ref, time, host, entry, visit_exit, visit_start)
125
VALUES ('3m3l4rhs6do0sf5p1i9lr94g928a272v', '', '', INET_ATON('71.118.124.98'), '', '', 'http://dev.mysql.com/downloads/connector/j/3.0.html', NULL, 'dev.mysql.com', '/get/Downloads/Connector-J/mysql-connector-java-3.0.17-ga.zip/from/pick', '/get/Downloads/Connector-J/mysql-connector-java-3.0.17-ga.zip/from/pick', NOW())/*!*/;
130
SELECT * FROM visits;
131
SELECT * FROM visits_events;
135
sync_slave_with_master;
136
--echo End of 5.1 tests