Is it possible to completely disable the general log without restarting the server?
Because in the documentation:
SET sql_log_bin = {0|1}
Disables or enables the binary log for the current connection ( sql_log_bin- this is a session variable) if the client has privilege SUPER. An application is rejected with an error if the client does not have this privilege.
sql_log_bin
SUPER
Is it possible to enable / disable shared log without rebooting MySQL?
For those who use 5.1 now, you can use these commands (you had to look for them, and this Q & A appeared)
SET GLOBAL log_output='TABLE'; #or FILE SET GLOBAL general_log='OFF'; #or ON SET GLOBAL slow_query_log='ON'; #or OFF
TABLE mysql.general_log mysql.slow_log , .
MySQL 5.0 " sql_log_off ON OFF, ". [MySQL Doc, ]
sql_log_off
ON
OFF
Source: https://habr.com/ru/post/1716309/More articles:Override method - to call an overridden implementation (super) or not to call? - inheritanceWPF rendering of a DrawingGroup for a single ImageSource - c #How to lock window key, alt + tab, ctrl + alt + delete in C #? - c #How to catch keyboard strokes in a C # winform forms application (CTRl + alt + Del) - c #Should I decorate my classes / properties as DataContract / DataMember when I use them in WCF? - c #Use QAction without adding to a menu (or toolbar) - pythonHow to view everything in session state for all active sessions? - asp.netrange of choice in IE - javascriptCan I capture mouse events for a Silverlight control through JavaScript? - javascriptC #: Is there a way to find out what encodes a file's encoding? - c #All Articles