@@ -96,6 +96,8 @@ bool create_system_files(const char *mdata,const char *output_file, bool test)
96
96
"Lock_tables_priv enum('N','Y') DEFAULT 'N' NOT NULL,"
97
97
"PRIMARY KEY Host (Host,Db,User),"
98
98
"KEY User (User))"
99
+ "engine=MyISAM "
100
+ "CHARACTER SET utf8 COLLATE utf8_bin "
99
101
"comment='Database privileges';\n" );
100
102
101
103
if (test )
@@ -126,10 +128,12 @@ bool create_system_files(const char *mdata,const char *output_file, bool test)
126
128
"Create_tmp_table_priv enum('N','Y') DEFAULT 'N' NOT NULL,"
127
129
"Lock_tables_priv enum('N','Y') DEFAULT 'N' NOT NULL,"
128
130
"PRIMARY KEY Host (Host,Db))"
129
- "comment='Host privileges;"
130
- " Merged with database privileges';\n" );
131
+ "engine=MyISAM "
132
+ "CHARACTER SET utf8 COLLATE utf8_bin "
133
+ "comment='Host privileges; Merged with database privileges';\n" );
131
134
}
132
135
136
+
133
137
if (test_sys_file (mdata ,"mysql/user.frm" ))
134
138
{
135
139
#ifdef __WIN__
@@ -184,7 +188,10 @@ bool create_system_files(const char *mdata,const char *output_file, bool test)
184
188
"max_updates int(11) unsigned DEFAULT 0 NOT NULL,"
185
189
"max_connections int(11) unsigned DEFAULT 0 NOT NULL,"
186
190
"PRIMARY KEY Host (Host,User)"
187
- ") comment='Users and global privileges';\n" );
191
+ ") engine=MyISAM "
192
+ "CHARACTER SET utf8 COLLATE utf8_bin "
193
+ "comment='Users and global privileges';\n" );
194
+
188
195
189
196
if (test )
190
197
{
@@ -238,7 +245,9 @@ bool create_system_files(const char *mdata,const char *output_file, bool test)
238
245
"dl char(128) DEFAULT '' NOT NULL,"
239
246
"type enum ('function','aggregate') NOT NULL,"
240
247
"PRIMARY KEY (name)"
241
- ") comment='User defined functions';\n" );
248
+ ") engine=MyISAM "
249
+ "CHARACTER SET utf8 COLLATE utf8_bin "
250
+ "comment='User defined functions';\n" );
242
251
}
243
252
244
253
if (test_sys_file (mdata ,"mysql/tables_priv.frm" ))
@@ -258,7 +267,9 @@ bool create_system_files(const char *mdata,const char *output_file, bool test)
258
267
" DEFAULT '' NOT NULL,"
259
268
"PRIMARY KEY (Host,Db,User,Table_name),"
260
269
"KEY Grantor (Grantor)"
261
- ") comment='Table privileges';\n" );
270
+ ") engine=MyISAM "
271
+ "CHARACTER SET utf8 COLLATE utf8_bin "
272
+ "comment='Table privileges';\n" );
262
273
}
263
274
264
275
if (test_sys_file (mdata ,"mysql/columns_priv.frm" ))
@@ -274,7 +285,9 @@ bool create_system_files(const char *mdata,const char *output_file, bool test)
274
285
"Column_priv set('Select','Insert','Update','References')"
275
286
" DEFAULT '' NOT NULL,"
276
287
"PRIMARY KEY (Host,Db,User,Table_name,Column_name)"
277
- ") comment='Column privileges';\n" );
288
+ ") engine=MyISAM "
289
+ "CHARACTER SET utf8 COLLATE utf8_bin "
290
+ "comment='Column privileges';\n" );
278
291
}
279
292
280
293
if (test_sys_file (mdata ,"mysql/help_topic.frm" ))
@@ -289,7 +302,9 @@ bool create_system_files(const char *mdata,const char *output_file, bool test)
289
302
"url varchar(128) not null,"
290
303
"primary key (help_topic_id),"
291
304
"unique index (name)"
292
- ") comment='help topics';\n" );
305
+ ") engine=MyISAM "
306
+ "CHARACTER SET utf8 "
307
+ "comment='help topics';\n" );
293
308
}
294
309
295
310
if (test_sys_file (mdata ,"mysql/help_category.frm" ))
@@ -302,7 +317,9 @@ bool create_system_files(const char *mdata,const char *output_file, bool test)
302
317
"url varchar(128) not null,"
303
318
"primary key (help_category_id),"
304
319
"unique index (name)"
305
- ") comment='help categories';\n" );
320
+ ") engine=MyISAM "
321
+ "CHARACTER SET utf8 "
322
+ "comment='help categories';\n" );
306
323
}
307
324
308
325
if (test_sys_file (mdata ,"mysql/help_keyword.frm" ))
@@ -313,7 +330,9 @@ bool create_system_files(const char *mdata,const char *output_file, bool test)
313
330
"name varchar(64) not null,"
314
331
"primary key (help_keyword_id),"
315
332
"unique index (name)"
316
- ") comment='help keywords';\n" );
333
+ ") engine=MyISAM "
334
+ "CHARACTER SET utf8 "
335
+ "comment='help keywords';\n" );
317
336
}
318
337
319
338
if (test_sys_file (mdata ,"mysql/help_relation.frm" ))
@@ -323,7 +342,9 @@ bool create_system_files(const char *mdata,const char *output_file, bool test)
323
342
"help_topic_id int unsigned not null references help_topic,"
324
343
"help_keyword_id int unsigned not null references help_keyword,"
325
344
"primary key (help_keyword_id, help_topic_id)"
326
- ") comment='keyword-topic relation';\n" );
345
+ ") engine=MyISAM "
346
+ "CHARACTER SET utf8 "
347
+ "comment='keyword-topic relation';\n" );
327
348
}
328
349
329
350
if (test_sys_file (mdata ,"mysql/time_zone_name.frm" ))
@@ -333,15 +354,17 @@ bool create_system_files(const char *mdata,const char *output_file, bool test)
333
354
"Name char(64) NOT NULL,"
334
355
"Time_zone_id int unsigned NOT NULL,"
335
356
"PRIMARY KEY Name (Name)"
336
- ") DEFAULT CHARACTER SET latin1 "
357
+ ") engine=MyISAM CHARACTER SET utf8 "
337
358
"comment='Time zone names';\n" );
338
359
339
360
if (test )
340
361
{
341
362
fprintf (out ,
342
363
"INSERT INTO time_zone_name (Name, Time_Zone_id) VALUES"
343
364
"('MET', 1), ('UTC', 2), ('Universal', 2), "
344
- "('Europe/Moscow',3), ('leap/Europe/Moscow',4);\n" );
365
+ "('Europe/Moscow',3), ('leap/Europe/Moscow',4),"
366
+ "('Japan', 5);\n" );
367
+
345
368
}
346
369
}
347
370
@@ -353,13 +376,13 @@ bool create_system_files(const char *mdata,const char *output_file, bool test)
353
376
"Time_zone_id int unsigned NOT NULL auto_increment,"
354
377
"Use_leap_seconds enum('Y','N') DEFAULT 'N' NOT NULL,"
355
378
"PRIMARY KEY TzId (Time_zone_id)"
356
- ") DEFAULT CHARACTER SET latin1 "
379
+ ") engine=MyISAM CHARACTER SET utf8 "
357
380
"comment='Time zones';\n" );
358
381
359
382
if (test )
360
383
{
361
384
fprintf (out ,"INSERT INTO time_zone (Time_zone_id, Use_leap_seconds)"
362
- "VALUES (1,'N'), (2,'N'), (3,'N'), (4,'Y');\n" );
385
+ "VALUES (1,'N'), (2,'N'), (3,'N'), (4,'Y'), (5,'N') ;\n" );
363
386
}
364
387
}
365
388
@@ -371,7 +394,7 @@ bool create_system_files(const char *mdata,const char *output_file, bool test)
371
394
"Transition_time bigint signed NOT NULL,"
372
395
"Transition_type_id int unsigned NOT NULL,"
373
396
"PRIMARY KEY TzIdTranTime (Time_zone_id, Transition_time)"
374
- ") DEFAULT CHARACTER SET latin1 "
397
+ ") engine=MyISAM CHARACTER SET utf8 "
375
398
"comment='Time zone transitions';\n" );
376
399
377
400
if (test )
@@ -576,7 +599,9 @@ bool create_system_files(const char *mdata,const char *output_file, bool test)
576
599
",(4, 2045689222, 8) ,(4, 2058390022, 9)"
577
600
",(4, 2077138822, 8) ,(4, 2090444422, 9)"
578
601
",(4, 2108588422, 8) ,(4, 2121894022, 9)"
579
- ",(4, 2140038022, 8);\n" );
602
+ ",(4, 2140038022, 8), (5, -1009875600, 1);\n" );
603
+
604
+
580
605
}
581
606
}
582
607
@@ -590,7 +615,7 @@ bool create_system_files(const char *mdata,const char *output_file, bool test)
590
615
"Is_DST tinyint unsigned DEFAULT 0 NOT NULL,"
591
616
"Abbreviation char(8) DEFAULT '' NOT NULL,"
592
617
"PRIMARY KEY TzIdTrTId (Time_zone_id, Transition_type_id)"
593
- ") DEFAULT CHARACTER SET latin1 "
618
+ ") engine=MyISAM CHARACTER SET utf8 "
594
619
"comment='Time zone transition types';\n" );
595
620
596
621
if (test )
@@ -612,7 +637,9 @@ bool create_system_files(const char *mdata,const char *output_file, bool test)
612
637
",(4, 4, 10800, 0, 'MSK') ,(4, 5, 14400, 1, 'MSD')"
613
638
",(4, 6, 18000, 1, 'MSD') ,(4, 7, 7200, 0, 'EET')"
614
639
",(4, 8, 10800, 0, 'MSK') ,(4, 9, 14400, 1, 'MSD')"
615
- ",(4, 10, 10800, 1, 'EEST') ,(4, 11, 7200, 0, 'EET');\n" );
640
+ ",(4, 10, 10800, 1, 'EEST') ,(4, 11, 7200, 0, 'EET')"
641
+ ",(5, 0, 32400, 0, 'CJT') ,(5, 1, 32400, 0, 'JST');\n" );
642
+
616
643
}
617
644
}
618
645
@@ -623,7 +650,7 @@ bool create_system_files(const char *mdata,const char *output_file, bool test)
623
650
"Transition_time bigint signed NOT NULL,"
624
651
"Correction int signed NOT NULL,"
625
652
"PRIMARY KEY TranTime (Transition_time)"
626
- ") DEFAULT CHARACTER SET latin1 "
653
+ ") engine=MyISAM CHARACTER SET utf8 "
627
654
"comment='Leap seconds information for time zones';\n" );
628
655
629
656
if (test )
0 commit comments