1#
2# Bug#49823: mysql_upgrade fatal error due to general_log / slow_low CSV NULL
3#
4USE test;
5SET @saved_general_log = @@GLOBAL.general_log;
6SET GLOBAL general_log = OFF;
7USE mysql;
8FLUSH TABLES;
9REPAIR TABLE test.bug49823;
10Table	Op	Msg_type	Msg_text
11test.bug49823	repair	status	OK
12RENAME TABLE general_log TO renamed_general_log;
13RENAME TABLE test.bug49823 TO general_log;
14Warning: Using a password on the command line interface can be insecure.
15Warning: Using a password on the command line interface can be insecure.
16mysql.columns_priv                                 OK
17mysql.db                                           OK
18mysql.event                                        OK
19mysql.func                                         OK
20mysql.general_log                                  OK
21mysql.help_category                                OK
22mysql.help_keyword                                 OK
23mysql.help_relation                                OK
24mysql.help_topic                                   OK
25mysql.innodb_index_stats                           OK
26mysql.innodb_table_stats                           OK
27mysql.ndb_binlog_index                             OK
28mysql.plugin                                       OK
29mysql.proc                                         OK
30mysql.procs_priv                                   OK
31mysql.proxies_priv                                 OK
32mysql.renamed_general_log                          OK
33mysql.servers                                      OK
34mysql.slave_master_info                            OK
35mysql.slave_relay_log_info                         OK
36mysql.slave_worker_info                            OK
37mysql.slow_log                                     OK
38mysql.tables_priv                                  OK
39mysql.time_zone                                    OK
40mysql.time_zone_leap_second                        OK
41mysql.time_zone_name                               OK
42mysql.time_zone_transition                         OK
43mysql.time_zone_transition_type                    OK
44mysql.user                                         OK
45Warning: Using a password on the command line interface can be insecure.
46Warning: Using a password on the command line interface can be insecure.
47Warning: Using a password on the command line interface can be insecure.
48mtr.global_suppressions                            OK
49mtr.test_suppressions                              OK
50DROP TABLE general_log;
51RENAME TABLE renamed_general_log TO general_log;
52SET GLOBAL general_log = @saved_general_log;
53USE test;
54