Details
Description
maridab-upgrade is failing if the server is configured with sql_safe_updates = on
my.cnf
[mysqld]
|
sql_safe_updates = on
|
mariadb-upgrade returns:
Phase 4/7: Running 'mysql_fix_privilege_tables'
|
ERROR 1175 (HY000) at line 316: You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column
|
ERROR 1175 (HY000) at line 328: You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column
|
ERROR 1175 (HY000) at line 340: You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column
|
ERROR 1175 (HY000) at line 352: You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column
|
ERROR 1175 (HY000) at line 353: You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column
|
ERROR 1175 (HY000) at line 477: You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column
|
FATAL ERROR: Upgrade failed
|
Additionally it's not possible to disable this for only the upgrade process. I attempted the following without success:
my.cnf
[mariadb-upgrade]
|
sql_safe_updates = off
|
The issue can be mitigated by restarting the server with sql_safe_updates = off globally, running mariadb-upgrade then re-enabling it.
It would be nice to be able to disable this for mariadb-upgrade only, rather than needing to disable it for the entire server.
Attachments
Activity
Field | Original Value | New Value |
---|---|---|
Fix Version/s | 10.3 [ 22126 ] | |
Fix Version/s | 10.4 [ 22408 ] | |
Fix Version/s | 10.5 [ 23123 ] | |
Fix Version/s | 10.6 [ 24028 ] | |
Fix Version/s | 10.7 [ 24805 ] | |
Fix Version/s | 10.8 [ 26121 ] | |
Fix Version/s | 10.9 [ 26905 ] | |
Fix Version/s | 10.10 [ 27530 ] |
Labels | beginner-friendly |
Fix Version/s | 10.7 [ 24805 ] |
Fix Version/s | 10.3 [ 22126 ] |
Fix Version/s | 10.8 [ 26121 ] |
Labels | beginner-friendly | Papercut beginner-friendly |
Status | Open [ 1 ] | Confirmed [ 10101 ] |
Assignee | Daniel Black [ danblack ] |
Assignee | Daniel Black [ danblack ] | Andrew Hutchings [ JIRAUSER52179 ] |
Status | Confirmed [ 10101 ] | In Review [ 10002 ] |
issue.field.resolutiondate | 2023-10-23 08:25:58.0 | 2023-10-23 08:25:57.632 |
Fix Version/s | 10.4.32 [ 29300 ] | |
Fix Version/s | 10.4 [ 22408 ] | |
Fix Version/s | 10.5 [ 23123 ] | |
Fix Version/s | 10.6 [ 24028 ] | |
Fix Version/s | 10.9 [ 26905 ] | |
Fix Version/s | 10.10 [ 27530 ] | |
Assignee | Andrew Hutchings [ JIRAUSER52179 ] | Daniel Black [ danblack ] |
Resolution | Fixed [ 1 ] | |
Status | In Review [ 10002 ] | Closed [ 6 ] |
Fix Version/s | 10.5.23 [ 29012 ] | |
Fix Version/s | 10.6.16 [ 29014 ] | |
Fix Version/s | 10.10.7 [ 29018 ] | |
Fix Version/s | 10.11.6 [ 29020 ] | |
Fix Version/s | 11.0.4 [ 29021 ] | |
Fix Version/s | 11.1.3 [ 29023 ] |