summaryrefslogtreecommitdiff
path: root/mysql-test/suite/perfschema/r/pfs_upgrade.result
blob: 17a45d4fe459930dea859058de7e98ea079c15d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
drop table if exists test.user_table;
drop procedure if exists test.user_proc;
drop function if exists test.user_func;
drop event if exists test.user_event;
"Testing mysql_upgrade with TABLE performance_schema.user_table"
create table test.user_table(a int);
use performance_schema;
show tables like "user_table";
Tables_in_performance_schema (user_table)
user_table
ERROR 1050 (42S01) at line 97: Table 'cond_instances' already exists
ERROR 1050 (42S01) at line 122: Table 'events_waits_current' already exists
ERROR 1050 (42S01) at line 147: Table 'events_waits_history' already exists
ERROR 1050 (42S01) at line 172: Table 'events_waits_history_long' already exists
ERROR 1050 (42S01) at line 185: Table 'events_waits_summary_by_instance' already exists
ERROR 1050 (42S01) at line 198: Table 'events_waits_summary_by_host_by_event_name' already exists
ERROR 1050 (42S01) at line 211: Table 'events_waits_summary_by_user_by_event_name' already exists
ERROR 1050 (42S01) at line 225: Table 'events_waits_summary_by_account_by_event_name' already exists
ERROR 1050 (42S01) at line 238: Table 'events_waits_summary_by_thread_by_event_name' already exists
ERROR 1050 (42S01) at line 250: Table 'events_waits_summary_global_by_event_name' already exists
ERROR 1050 (42S01) at line 259: Table 'file_instances' already exists
ERROR 1050 (42S01) at line 288: Table 'file_summary_by_event_name' already exists
ERROR 1050 (42S01) at line 319: Table 'file_summary_by_instance' already exists
ERROR 1050 (42S01) at line 332: Table 'socket_instances' already exists
ERROR 1050 (42S01) at line 362: Table 'socket_summary_by_instance' already exists
ERROR 1050 (42S01) at line 391: Table 'socket_summary_by_event_name' already exists
ERROR 1050 (42S01) at line 432: Table 'mutex_instances' already exists
ERROR 1050 (42S01) at line 446: Table 'objects_summary_global_by_type' already exists
ERROR 1050 (42S01) at line 456: Table 'performance_timers' already exists
ERROR 1050 (42S01) at line 466: Table 'rwlock_instances' already exists
ERROR 1050 (42S01) at line 475: Table 'setup_actors' already exists
ERROR 1050 (42S01) at line 483: Table 'setup_consumers' already exists
ERROR 1050 (42S01) at line 492: Table 'setup_instruments' already exists
ERROR 1050 (42S01) at line 503: Table 'setup_objects' already exists
ERROR 1050 (42S01) at line 511: Table 'setup_timers' already exists
ERROR 1050 (42S01) at line 556: Table 'table_io_waits_summary_by_index_usage' already exists
ERROR 1050 (42S01) at line 600: Table 'table_io_waits_summary_by_table' already exists
ERROR 1050 (42S01) at line 679: Table 'table_lock_waits_summary_by_table' already exists
ERROR 1050 (42S01) at line 699: Table 'threads' already exists
ERROR 1050 (42S01) at line 715: Table 'events_stages_current' already exists
ERROR 1050 (42S01) at line 731: Table 'events_stages_history' already exists
ERROR 1050 (42S01) at line 747: Table 'events_stages_history_long' already exists
ERROR 1050 (42S01) at line 760: Table 'events_stages_summary_by_thread_by_event_name' already exists
ERROR 1050 (42S01) at line 773: Table 'events_stages_summary_by_host_by_event_name' already exists
ERROR 1050 (42S01) at line 786: Table 'events_stages_summary_by_user_by_event_name' already exists
ERROR 1050 (42S01) at line 800: Table 'events_stages_summary_by_account_by_event_name' already exists
ERROR 1050 (42S01) at line 812: Table 'events_stages_summary_global_by_event_name' already exists
ERROR 1050 (42S01) at line 858: Table 'events_statements_current' already exists
ERROR 1050 (42S01) at line 904: Table 'events_statements_history' already exists
ERROR 1050 (42S01) at line 950: Table 'events_statements_history_long' already exists
ERROR 1050 (42S01) at line 982: Table 'events_statements_summary_by_thread_by_event_name' already exists
ERROR 1050 (42S01) at line 1014: Table 'events_statements_summary_by_host_by_event_name' already exists
ERROR 1050 (42S01) at line 1046: Table 'events_statements_summary_by_user_by_event_name' already exists
ERROR 1050 (42S01) at line 1079: Table 'events_statements_summary_by_account_by_event_name' already exists
ERROR 1050 (42S01) at line 1110: Table 'events_statements_summary_global_by_event_name' already exists
ERROR 1050 (42S01) at line 1119: Table 'hosts' already exists
ERROR 1050 (42S01) at line 1128: Table 'users' already exists
ERROR 1050 (42S01) at line 1138: Table 'accounts' already exists
ERROR 1050 (42S01) at line 1172: Table 'events_statements_summary_by_digest' already exists
ERROR 1644 (HY000) at line 1594: Unexpected content found in the performance_schema database.
FATAL ERROR: Upgrade failed
show tables like "user_table";
Tables_in_performance_schema (user_table)
user_table
use test;
drop table test.user_table;
"Testing mysql_upgrade with VIEW performance_schema.user_view"
create view test.user_view as select "Not supposed to be here";
use performance_schema;
show tables like "user_view";
Tables_in_performance_schema (user_view)
user_view
ERROR 1050 (42S01) at line 97: Table 'cond_instances' already exists
ERROR 1050 (42S01) at line 122: Table 'events_waits_current' already exists
ERROR 1050 (42S01) at line 147: Table 'events_waits_history' already exists
ERROR 1050 (42S01) at line 172: Table 'events_waits_history_long' already exists
ERROR 1050 (42S01) at line 185: Table 'events_waits_summary_by_instance' already exists
ERROR 1050 (42S01) at line 198: Table 'events_waits_summary_by_host_by_event_name' already exists
ERROR 1050 (42S01) at line 211: Table 'events_waits_summary_by_user_by_event_name' already exists
ERROR 1050 (42S01) at line 225: Table 'events_waits_summary_by_account_by_event_name' already exists
ERROR 1050 (42S01) at line 238: Table 'events_waits_summary_by_thread_by_event_name' already exists
ERROR 1050 (42S01) at line 250: Table 'events_waits_summary_global_by_event_name' already exists
ERROR 1050 (42S01) at line 259: Table 'file_instances' already exists
ERROR 1050 (42S01) at line 288: Table 'file_summary_by_event_name' already exists
ERROR 1050 (42S01) at line 319: Table 'file_summary_by_instance' already exists
ERROR 1050 (42S01) at line 332: Table 'socket_instances' already exists
ERROR 1050 (42S01) at line 362: Table 'socket_summary_by_instance' already exists
ERROR 1050 (42S01) at line 391: Table 'socket_summary_by_event_name' already exists
ERROR 1050 (42S01) at line 432: Table 'mutex_instances' already exists
ERROR 1050 (42S01) at line 446: Table 'objects_summary_global_by_type' already exists
ERROR 1050 (42S01) at line 456: Table 'performance_timers' already exists
ERROR 1050 (42S01) at line 466: Table 'rwlock_instances' already exists
ERROR 1050 (42S01) at line 475: Table 'setup_actors' already exists
ERROR 1050 (42S01) at line 483: Table 'setup_consumers' already exists
ERROR 1050 (42S01) at line 492: Table 'setup_instruments' already exists
ERROR 1050 (42S01) at line 503: Table 'setup_objects' already exists
ERROR 1050 (42S01) at line 511: Table 'setup_timers' already exists
ERROR 1050 (42S01) at line 556: Table 'table_io_waits_summary_by_index_usage' already exists
ERROR 1050 (42S01) at line 600: Table 'table_io_waits_summary_by_table' already exists
ERROR 1050 (42S01) at line 679: Table 'table_lock_waits_summary_by_table' already exists
ERROR 1050 (42S01) at line 699: Table 'threads' already exists
ERROR 1050 (42S01) at line 715: Table 'events_stages_current' already exists
ERROR 1050 (42S01) at line 731: Table 'events_stages_history' already exists
ERROR 1050 (42S01) at line 747: Table 'events_stages_history_long' already exists
ERROR 1050 (42S01) at line 760: Table 'events_stages_summary_by_thread_by_event_name' already exists
ERROR 1050 (42S01) at line 773: Table 'events_stages_summary_by_host_by_event_name' already exists
ERROR 1050 (42S01) at line 786: Table 'events_stages_summary_by_user_by_event_name' already exists
ERROR 1050 (42S01) at line 800: Table 'events_stages_summary_by_account_by_event_name' already exists
ERROR 1050 (42S01) at line 812: Table 'events_stages_summary_global_by_event_name' already exists
ERROR 1050 (42S01) at line 858: Table 'events_statements_current' already exists
ERROR 1050 (42S01) at line 904: Table 'events_statements_history' already exists
ERROR 1050 (42S01) at line 950: Table 'events_statements_history_long' already exists
ERROR 1050 (42S01) at line 982: Table 'events_statements_summary_by_thread_by_event_name' already exists
ERROR 1050 (42S01) at line 1014: Table 'events_statements_summary_by_host_by_event_name' already exists
ERROR 1050 (42S01) at line 1046: Table 'events_statements_summary_by_user_by_event_name' already exists
ERROR 1050 (42S01) at line 1079: Table 'events_statements_summary_by_account_by_event_name' already exists
ERROR 1050 (42S01) at line 1110: Table 'events_statements_summary_global_by_event_name' already exists
ERROR 1050 (42S01) at line 1119: Table 'hosts' already exists
ERROR 1050 (42S01) at line 1128: Table 'users' already exists
ERROR 1050 (42S01) at line 1138: Table 'accounts' already exists
ERROR 1050 (42S01) at line 1172: Table 'events_statements_summary_by_digest' already exists
ERROR 1644 (HY000) at line 1594: Unexpected content found in the performance_schema database.
FATAL ERROR: Upgrade failed
show tables like "user_view";
Tables_in_performance_schema (user_view)
user_view
use test;
drop view test.user_view;
"Testing mysql_upgrade with PROCEDURE performance_schema.user_proc"
create procedure test.user_proc()
select "Not supposed to be here";
update mysql.proc set db='performance_schema' where name='user_proc';
ERROR 1050 (42S01) at line 97: Table 'cond_instances' already exists
ERROR 1050 (42S01) at line 122: Table 'events_waits_current' already exists
ERROR 1050 (42S01) at line 147: Table 'events_waits_history' already exists
ERROR 1050 (42S01) at line 172: Table 'events_waits_history_long' already exists
ERROR 1050 (42S01) at line 185: Table 'events_waits_summary_by_instance' already exists
ERROR 1050 (42S01) at line 198: Table 'events_waits_summary_by_host_by_event_name' already exists
ERROR 1050 (42S01) at line 211: Table 'events_waits_summary_by_user_by_event_name' already exists
ERROR 1050 (42S01) at line 225: Table 'events_waits_summary_by_account_by_event_name' already exists
ERROR 1050 (42S01) at line 238: Table 'events_waits_summary_by_thread_by_event_name' already exists
ERROR 1050 (42S01) at line 250: Table 'events_waits_summary_global_by_event_name' already exists
ERROR 1050 (42S01) at line 259: Table 'file_instances' already exists
ERROR 1050 (42S01) at line 288: Table 'file_summary_by_event_name' already exists
ERROR 1050 (42S01) at line 319: Table 'file_summary_by_instance' already exists
ERROR 1050 (42S01) at line 332: Table 'socket_instances' already exists
ERROR 1050 (42S01) at line 362: Table 'socket_summary_by_instance' already exists
ERROR 1050 (42S01) at line 391: Table 'socket_summary_by_event_name' already exists
ERROR 1050 (42S01) at line 432: Table 'mutex_instances' already exists
ERROR 1050 (42S01) at line 446: Table 'objects_summary_global_by_type' already exists
ERROR 1050 (42S01) at line 456: Table 'performance_timers' already exists
ERROR 1050 (42S01) at line 466: Table 'rwlock_instances' already exists
ERROR 1050 (42S01) at line 475: Table 'setup_actors' already exists
ERROR 1050 (42S01) at line 483: Table 'setup_consumers' already exists
ERROR 1050 (42S01) at line 492: Table 'setup_instruments' already exists
ERROR 1050 (42S01) at line 503: Table 'setup_objects' already exists
ERROR 1050 (42S01) at line 511: Table 'setup_timers' already exists
ERROR 1050 (42S01) at line 556: Table 'table_io_waits_summary_by_index_usage' already exists
ERROR 1050 (42S01) at line 600: Table 'table_io_waits_summary_by_table' already exists
ERROR 1050 (42S01) at line 679: Table 'table_lock_waits_summary_by_table' already exists
ERROR 1050 (42S01) at line 699: Table 'threads' already exists
ERROR 1050 (42S01) at line 715: Table 'events_stages_current' already exists
ERROR 1050 (42S01) at line 731: Table 'events_stages_history' already exists
ERROR 1050 (42S01) at line 747: Table 'events_stages_history_long' already exists
ERROR 1050 (42S01) at line 760: Table 'events_stages_summary_by_thread_by_event_name' already exists
ERROR 1050 (42S01) at line 773: Table 'events_stages_summary_by_host_by_event_name' already exists
ERROR 1050 (42S01) at line 786: Table 'events_stages_summary_by_user_by_event_name' already exists
ERROR 1050 (42S01) at line 800: Table 'events_stages_summary_by_account_by_event_name' already exists
ERROR 1050 (42S01) at line 812: Table 'events_stages_summary_global_by_event_name' already exists
ERROR 1050 (42S01) at line 858: Table 'events_statements_current' already exists
ERROR 1050 (42S01) at line 904: Table 'events_statements_history' already exists
ERROR 1050 (42S01) at line 950: Table 'events_statements_history_long' already exists
ERROR 1050 (42S01) at line 982: Table 'events_statements_summary_by_thread_by_event_name' already exists
ERROR 1050 (42S01) at line 1014: Table 'events_statements_summary_by_host_by_event_name' already exists
ERROR 1050 (42S01) at line 1046: Table 'events_statements_summary_by_user_by_event_name' already exists
ERROR 1050 (42S01) at line 1079: Table 'events_statements_summary_by_account_by_event_name' already exists
ERROR 1050 (42S01) at line 1110: Table 'events_statements_summary_global_by_event_name' already exists
ERROR 1050 (42S01) at line 1119: Table 'hosts' already exists
ERROR 1050 (42S01) at line 1128: Table 'users' already exists
ERROR 1050 (42S01) at line 1138: Table 'accounts' already exists
ERROR 1050 (42S01) at line 1172: Table 'events_statements_summary_by_digest' already exists
ERROR 1644 (HY000) at line 1594: Unexpected content found in the performance_schema database.
FATAL ERROR: Upgrade failed
select name from mysql.proc where db='performance_schema';
name
user_proc
update mysql.proc set db='test' where name='user_proc';
drop procedure test.user_proc;
"Testing mysql_upgrade with FUNCTION performance_schema.user_func"
create function test.user_func() returns integer
return 0;
update mysql.proc set db='performance_schema' where name='user_func';
ERROR 1050 (42S01) at line 97: Table 'cond_instances' already exists
ERROR 1050 (42S01) at line 122: Table 'events_waits_current' already exists
ERROR 1050 (42S01) at line 147: Table 'events_waits_history' already exists
ERROR 1050 (42S01) at line 172: Table 'events_waits_history_long' already exists
ERROR 1050 (42S01) at line 185: Table 'events_waits_summary_by_instance' already exists
ERROR 1050 (42S01) at line 198: Table 'events_waits_summary_by_host_by_event_name' already exists
ERROR 1050 (42S01) at line 211: Table 'events_waits_summary_by_user_by_event_name' already exists
ERROR 1050 (42S01) at line 225: Table 'events_waits_summary_by_account_by_event_name' already exists
ERROR 1050 (42S01) at line 238: Table 'events_waits_summary_by_thread_by_event_name' already exists
ERROR 1050 (42S01) at line 250: Table 'events_waits_summary_global_by_event_name' already exists
ERROR 1050 (42S01) at line 259: Table 'file_instances' already exists
ERROR 1050 (42S01) at line 288: Table 'file_summary_by_event_name' already exists
ERROR 1050 (42S01) at line 319: Table 'file_summary_by_instance' already exists
ERROR 1050 (42S01) at line 332: Table 'socket_instances' already exists
ERROR 1050 (42S01) at line 362: Table 'socket_summary_by_instance' already exists
ERROR 1050 (42S01) at line 391: Table 'socket_summary_by_event_name' already exists
ERROR 1050 (42S01) at line 432: Table 'mutex_instances' already exists
ERROR 1050 (42S01) at line 446: Table 'objects_summary_global_by_type' already exists
ERROR 1050 (42S01) at line 456: Table 'performance_timers' already exists
ERROR 1050 (42S01) at line 466: Table 'rwlock_instances' already exists
ERROR 1050 (42S01) at line 475: Table 'setup_actors' already exists
ERROR 1050 (42S01) at line 483: Table 'setup_consumers' already exists
ERROR 1050 (42S01) at line 492: Table 'setup_instruments' already exists
ERROR 1050 (42S01) at line 503: Table 'setup_objects' already exists
ERROR 1050 (42S01) at line 511: Table 'setup_timers' already exists
ERROR 1050 (42S01) at line 556: Table 'table_io_waits_summary_by_index_usage' already exists
ERROR 1050 (42S01) at line 600: Table 'table_io_waits_summary_by_table' already exists
ERROR 1050 (42S01) at line 679: Table 'table_lock_waits_summary_by_table' already exists
ERROR 1050 (42S01) at line 699: Table 'threads' already exists
ERROR 1050 (42S01) at line 715: Table 'events_stages_current' already exists
ERROR 1050 (42S01) at line 731: Table 'events_stages_history' already exists
ERROR 1050 (42S01) at line 747: Table 'events_stages_history_long' already exists
ERROR 1050 (42S01) at line 760: Table 'events_stages_summary_by_thread_by_event_name' already exists
ERROR 1050 (42S01) at line 773: Table 'events_stages_summary_by_host_by_event_name' already exists
ERROR 1050 (42S01) at line 786: Table 'events_stages_summary_by_user_by_event_name' already exists
ERROR 1050 (42S01) at line 800: Table 'events_stages_summary_by_account_by_event_name' already exists
ERROR 1050 (42S01) at line 812: Table 'events_stages_summary_global_by_event_name' already exists
ERROR 1050 (42S01) at line 858: Table 'events_statements_current' already exists
ERROR 1050 (42S01) at line 904: Table 'events_statements_history' already exists
ERROR 1050 (42S01) at line 950: Table 'events_statements_history_long' already exists
ERROR 1050 (42S01) at line 982: Table 'events_statements_summary_by_thread_by_event_name' already exists
ERROR 1050 (42S01) at line 1014: Table 'events_statements_summary_by_host_by_event_name' already exists
ERROR 1050 (42S01) at line 1046: Table 'events_statements_summary_by_user_by_event_name' already exists
ERROR 1050 (42S01) at line 1079: Table 'events_statements_summary_by_account_by_event_name' already exists
ERROR 1050 (42S01) at line 1110: Table 'events_statements_summary_global_by_event_name' already exists
ERROR 1050 (42S01) at line 1119: Table 'hosts' already exists
ERROR 1050 (42S01) at line 1128: Table 'users' already exists
ERROR 1050 (42S01) at line 1138: Table 'accounts' already exists
ERROR 1050 (42S01) at line 1172: Table 'events_statements_summary_by_digest' already exists
ERROR 1644 (HY000) at line 1594: Unexpected content found in the performance_schema database.
FATAL ERROR: Upgrade failed
select name from mysql.proc where db='performance_schema';
name
user_func
update mysql.proc set db='test' where name='user_func';
drop function test.user_func;
"Testing mysql_upgrade with EVENT performance_schema.user_event"
create event test.user_event on schedule every 1 day do
select "not supposed to be here";
update mysql.event set db='performance_schema' where name='user_event';
ERROR 1050 (42S01) at line 97: Table 'cond_instances' already exists
ERROR 1050 (42S01) at line 122: Table 'events_waits_current' already exists
ERROR 1050 (42S01) at line 147: Table 'events_waits_history' already exists
ERROR 1050 (42S01) at line 172: Table 'events_waits_history_long' already exists
ERROR 1050 (42S01) at line 185: Table 'events_waits_summary_by_instance' already exists
ERROR 1050 (42S01) at line 198: Table 'events_waits_summary_by_host_by_event_name' already exists
ERROR 1050 (42S01) at line 211: Table 'events_waits_summary_by_user_by_event_name' already exists
ERROR 1050 (42S01) at line 225: Table 'events_waits_summary_by_account_by_event_name' already exists
ERROR 1050 (42S01) at line 238: Table 'events_waits_summary_by_thread_by_event_name' already exists
ERROR 1050 (42S01) at line 250: Table 'events_waits_summary_global_by_event_name' already exists
ERROR 1050 (42S01) at line 259: Table 'file_instances' already exists
ERROR 1050 (42S01) at line 288: Table 'file_summary_by_event_name' already exists
ERROR 1050 (42S01) at line 319: Table 'file_summary_by_instance' already exists
ERROR 1050 (42S01) at line 332: Table 'socket_instances' already exists
ERROR 1050 (42S01) at line 362: Table 'socket_summary_by_instance' already exists
ERROR 1050 (42S01) at line 391: Table 'socket_summary_by_event_name' already exists
ERROR 1050 (42S01) at line 432: Table 'mutex_instances' already exists
ERROR 1050 (42S01) at line 446: Table 'objects_summary_global_by_type' already exists
ERROR 1050 (42S01) at line 456: Table 'performance_timers' already exists
ERROR 1050 (42S01) at line 466: Table 'rwlock_instances' already exists
ERROR 1050 (42S01) at line 475: Table 'setup_actors' already exists
ERROR 1050 (42S01) at line 483: Table 'setup_consumers' already exists
ERROR 1050 (42S01) at line 492: Table 'setup_instruments' already exists
ERROR 1050 (42S01) at line 503: Table 'setup_objects' already exists
ERROR 1050 (42S01) at line 511: Table 'setup_timers' already exists
ERROR 1050 (42S01) at line 556: Table 'table_io_waits_summary_by_index_usage' already exists
ERROR 1050 (42S01) at line 600: Table 'table_io_waits_summary_by_table' already exists
ERROR 1050 (42S01) at line 679: Table 'table_lock_waits_summary_by_table' already exists
ERROR 1050 (42S01) at line 699: Table 'threads' already exists
ERROR 1050 (42S01) at line 715: Table 'events_stages_current' already exists
ERROR 1050 (42S01) at line 731: Table 'events_stages_history' already exists
ERROR 1050 (42S01) at line 747: Table 'events_stages_history_long' already exists
ERROR 1050 (42S01) at line 760: Table 'events_stages_summary_by_thread_by_event_name' already exists
ERROR 1050 (42S01) at line 773: Table 'events_stages_summary_by_host_by_event_name' already exists
ERROR 1050 (42S01) at line 786: Table 'events_stages_summary_by_user_by_event_name' already exists
ERROR 1050 (42S01) at line 800: Table 'events_stages_summary_by_account_by_event_name' already exists
ERROR 1050 (42S01) at line 812: Table 'events_stages_summary_global_by_event_name' already exists
ERROR 1050 (42S01) at line 858: Table 'events_statements_current' already exists
ERROR 1050 (42S01) at line 904: Table 'events_statements_history' already exists
ERROR 1050 (42S01) at line 950: Table 'events_statements_history_long' already exists
ERROR 1050 (42S01) at line 982: Table 'events_statements_summary_by_thread_by_event_name' already exists
ERROR 1050 (42S01) at line 1014: Table 'events_statements_summary_by_host_by_event_name' already exists
ERROR 1050 (42S01) at line 1046: Table 'events_statements_summary_by_user_by_event_name' already exists
ERROR 1050 (42S01) at line 1079: Table 'events_statements_summary_by_account_by_event_name' already exists
ERROR 1050 (42S01) at line 1110: Table 'events_statements_summary_global_by_event_name' already exists
ERROR 1050 (42S01) at line 1119: Table 'hosts' already exists
ERROR 1050 (42S01) at line 1128: Table 'users' already exists
ERROR 1050 (42S01) at line 1138: Table 'accounts' already exists
ERROR 1050 (42S01) at line 1172: Table 'events_statements_summary_by_digest' already exists
ERROR 1644 (HY000) at line 1594: Unexpected content found in the performance_schema database.
FATAL ERROR: Upgrade failed
select name from mysql.event where db='performance_schema';
name
user_event
update mysql.event set db='test' where name='user_event';
drop event test.user_event;