Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
5.5.32, 5.5(EOL), 10.0(EOL), 10.1(EOL), 10.2(EOL), 10.3(EOL)
Description
See also http://bugs.mysql.com/bug.php?id=69953
Can't drop mysql.slow_log if slow_log=on even with log_output=FILE or NONE
I can understand preventing dropping of a log table that is in active use,
but with log_output!=TABLE it should be dropable the same way as it is when logging is not active at all
How to repeat:
SET GLOBAL log_output='FILE'; |
SET GLOBAL slow_query_log=1; |
SET GLOBAL slow_query_log_file='/tmp/slow.log'; |
|
DROP TABLE mysql.slow_log; |
# => ERROR 1580 (HY000): You cannot 'DROP' a log table if logging is enabled |
|
SET GLOBAL log_output='NONE'; |
|
DROP TABLE mysql.slow_log; |
# => ERROR 1580 (HY000): You cannot 'DROP' a log table if logging is enabled |
|
SET GLOBAL slow_query_log=0; |
|
DROP TABLE mysql.slow_log; |
# => success
|
Suggested fix:
only prevent drop of "magic" log tables if logging is enabled and configured to log to the table
Attachments
Issue Links
Activity
Field | Original Value | New Value |
---|---|---|
Labels | upstream |
Remote Link | This issue links to "Bug #69953 - can't drop mysql.slow_log if slow_log=on even with log_output=FILE (Web Link)" [ 12008 ] |
Description |
See also http://bugs.mysql.com/bug.php?id=69953 Can't drop mysql.slow_log if slow_log=on even with log_output=FILE or NONE I can understand preventing dropping of a log table that is in active use, but with log_output!=TABLE it should be dropable the same way as it is when logging is not active at all How to repeat: SET GLOBAL log_output='FILE'; SET GLOBAL slow_query_log=1; SET GLOBAL slow_query_log_file='/tmp/slow.log'; DROP TABLE mysql.slow_log; => ERROR 1580 (HY000): You cannot 'DROP' a log table if logging is enabled SET GLOBAL log_output='NONE'; DROP TABLE mysql.slow_log; => ERROR 1580 (HY000): You cannot 'DROP' a log table if logging is enabled SET GLOBAL slow_query_log=0; DROP TABLE mysql.slow_log; => success Suggested fix: only prevent drop of "magic" log tables if logging is enabled *and* configured to log to the table |
See also http://bugs.mysql.com/bug.php?id=69953 Can't drop mysql.slow_log if slow_log=on even with log_output=FILE or NONE I can understand preventing dropping of a log table that is in active use, but with log_output!=TABLE it should be dropable the same way as it is when logging is not active at all How to repeat: {code:sql} SET GLOBAL log_output='FILE'; SET GLOBAL slow_query_log=1; SET GLOBAL slow_query_log_file='/tmp/slow.log'; DROP TABLE mysql.slow_log; # => ERROR 1580 (HY000): You cannot 'DROP' a log table if logging is enabled SET GLOBAL log_output='NONE'; DROP TABLE mysql.slow_log; # => ERROR 1580 (HY000): You cannot 'DROP' a log table if logging is enabled SET GLOBAL slow_query_log=0; DROP TABLE mysql.slow_log; # => success {code} Suggested fix: only prevent drop of "magic" log tables if logging is enabled *and* configured to log to the table |
Fix Version/s | 5.5.33 [ 13300 ] |
Fix Version/s | 5.5.34 [ 13500 ] | |
Fix Version/s | 5.5.33 [ 13300 ] |
Fix Version/s | 5.5.34 [ 13700 ] | |
Fix Version/s | 5.5.33a [ 13500 ] |
Fix Version/s | 5.5.35 [ 14000 ] | |
Fix Version/s | 5.5.34 [ 13700 ] |
Fix Version/s | 5.5.36 [ 14600 ] | |
Fix Version/s | 5.5.35 [ 14000 ] |
Fix Version/s | 5.5.37 [ 15000 ] | |
Fix Version/s | 5.5.36 [ 14600 ] |
Fix Version/s | 5.5.38 [ 15400 ] | |
Fix Version/s | 5.5.37 [ 15000 ] |
Fix Version/s | 5.5.39 [ 15800 ] | |
Fix Version/s | 5.5.38 [ 15400 ] |
Workflow | defaullt [ 28338 ] | MariaDB v2 [ 44269 ] |
Fix Version/s | 10.1 [ 16100 ] | |
Fix Version/s | 5.5 [ 15800 ] | |
Labels | upstream | upstream-fixed |
Affects Version/s | 10.0 [ 16000 ] |
Affects Version/s | 10.1 [ 16100 ] | |
Affects Version/s | 5.5 [ 15800 ] | |
Labels | upstream-fixed | upstream-fixed verified |
Component/s | Admin statements [ 11400 ] |
Workflow | MariaDB v2 [ 44269 ] | MariaDB v3 [ 63269 ] |
Priority | Minor [ 4 ] | Major [ 3 ] |
Affects Version/s | 10.2 [ 14601 ] | |
Affects Version/s | 10.3 [ 22126 ] |
Status | Open [ 1 ] | Confirmed [ 10101 ] |
Assignee | Daniel Black [ danblack ] |
Fix Version/s | 10.1.48 [ 25108 ] | |
Fix Version/s | 10.1 [ 16100 ] | |
Resolution | Fixed [ 1 ] | |
Status | Confirmed [ 10101 ] | Closed [ 6 ] |
Workflow | MariaDB v3 [ 63269 ] | MariaDB v4 [ 146908 ] |
Reproducible on MySQL 5.1 - 5.6, but not 5.7, apparently it was fixed there