[MDEV-14429] sql_safe_updates in my.cnf not work Created: 2017-11-17 Updated: 2018-11-13 Resolved: 2018-10-15 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Configuration, Server |
| Affects Version/s: | 10.0, 10.1, 10.2 |
| Fix Version/s: | 10.3.11 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Richard Stracke | Assignee: | Vladislav Vaintroub |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | upstream | ||
| Description |
|
Hio,
works properly, but adding "unknown variable 'sql_safe_updates=1'" Already reported years ago for MySQL 5.5 here: https://bugs.mysql.com/bug.php?id=66536 |
| Comments |
| Comment by Sergei Golubchik [ 2017-11-18 ] | ||||||||||||||||||||||||
|
workarounds: init-connect (per user), init-file (globally), safe-updates in [mysql] section of my.cnf | ||||||||||||||||||||||||
| Comment by Richard Stracke [ 2017-11-21 ] | ||||||||||||||||||||||||
|
Both .... init-connect (per user) not work.
content of '/etc/mysql/safeupdates.sql' :
restart service
| ||||||||||||||||||||||||
| Comment by Elena Stepanova [ 2017-11-21 ] | ||||||||||||||||||||||||
|
Your init file is missing a semicolon, you should see an error in the error log if you check it. For init-connect, apparently you're trying as root, it's not executed for super-users. | ||||||||||||||||||||||||
| Comment by Julien Fritsch [ 2017-12-13 ] | ||||||||||||||||||||||||
|
serg any reason for the priority change, please? | ||||||||||||||||||||||||
| Comment by Sergei Golubchik [ 2018-10-11 ] | ||||||||||||||||||||||||
|
Because Major is a "Major loss of function.", Minor is "Minor loss of function, or other problem where easy workaround is present.". This is the case where an easy workaround is present, right? Anyway, this is a very simple issue to fix, so sure, let's fix it | ||||||||||||||||||||||||
| Comment by Sergei Golubchik [ 2018-10-20 ] | ||||||||||||||||||||||||
|
It needs GET_BIT support from 10.3, so can only be added to 10.3. I've cherry-picked it into 10.3 and reverted from 5.5 |