Bug #89045 super_read_only changeable on a session

Submitted: 23 Dec 2017 19:02 Modified: 24 Dec 2017 19:38
Reporter: Oli Sennhauser Email Updates:
Status: Verified Impact on me:
None 
Category:MySQL Server: Options Severity:S4 (Feature request)
Version:5.7 OS:Any
Assigned to: CPU Architecture:Any
Tags: super_read_only

[23 Dec 2017 19:02] Oli Sennhauser
Description:
I would like to have the variable super_read_only set on session level.
Reason: If I have a slave set with super_read_only=on and I want to set it up from scratch (mysqldump | mysql) I have to set super_read_only=off on a global level to perform this job. This gives other users / bad applications the possibility to interfere with my restore.

How to repeat:
set session super_read_only = { on | off }

Suggested fix:
set session super_read_only = { on | off }
[24 Dec 2017 17:49] Shane Bester
Seems like a reasonable feature request.  

I will add that I'd like that every modification to read_only/super_read_only to be logged to the server error log so we can see who is setting it and when.
[24 Dec 2017 19:38] Oli Sennhauser
Hi Shane

I like your idea of the error log! You have my non-counting vote!

Merry Christmas!

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.059 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.