Bug #73656 | "SET SESSION" needs SUPER privilege | ||
---|---|---|---|
Submitted: | 20 Aug 2014 13:23 | Modified: | 11 Sep 2014 15:52 |
Reporter: | Yoshiaki Yamasaki | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Documentation | Severity: | S3 (Non-critical) |
Version: | 5.6, 5.6.21 | OS: | Any |
Assigned to: | Jon Stephens | CPU Architecture: | Any |
[20 Aug 2014 13:23]
Yoshiaki Yamasaki
[20 Aug 2014 14:13]
Todd Farmer
Hi Yoshiaki, Thank you for your bug report. This particular session variable is somewhat unique. It controls whether statements executed are written to the binary log, which has further implications for slave consistency. As such, it is restricted in ways that other session variables are not, as described in the documentation for this variable: "This variable controls whether logging to the binary log is done. The default value is 1 (do logging). To change logging for the current session, change the session value of this variable. The session user must have the SUPER privilege to set this variable. " http://dev.mysql.com/doc/refman/5.6/en/server-system-variables.html#sysvar_sql_log_bin Please note also that there has been recent discussion about the appropriateness of providing a global-scoped sql_log_bin variable. Much of that discussion focuses on the same problematic resulting behavior which drives the need to restrict access. You can read more about this particular variable and the impact here: http://www.tocker.ca/2014/08/14/set-global-sql_log_bin-we-need-your-feedback.html I've changed this bug to be a documentation bug - I think it would be helpful to note that the ability to set session variables is *generally* not restricted, but that exceptions exist, and documentation for individual variables should be consulted.
[21 Aug 2014 17:42]
Yoshiaki Yamasaki
Thank you for the reply. I understand. I voted the following discussion. Of course, I want to make an error. http://www.tocker.ca/2014/08/14/set-global-sql_log_bin-we-need-your-feedback.html
[10 Sep 2014 10:58]
Jon Stephens
I'm adopting this one.
[11 Sep 2014 15:52]
Jon Stephens
Thank you for your bug report. This issue has been addressed in the documentation. The updated documentation will appear on our website shortly.