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.
{"report":{"fcp":1070.7999997138977,"ttfb":325.2999997138977,"pageVisibility":"visible","entityId":116205,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"fc6d3c91-1eef-4ed4-9c35-6763d971c16e","navigationType":0,"readyForUser":1165.6999998092651,"redirectCount":0,"resourceLoadedEnd":1368.5,"resourceLoadedStart":331.2999997138977,"resourceTiming":[{"duration":202.5,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bv2/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":331.2999997138977,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":331.2999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":533.7999997138977,"responseStart":0,"secureConnectionStart":0},{"duration":211.5,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2bv2/820016/12ta74/2380add21a9a1006587582385952de73/_/download/contextbatch/css/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true","startTime":331.69999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":331.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":543.1999998092651,"responseStart":0,"secureConnectionStart":0},{"duration":265.59999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/e9b27a47da5fb0f74a35acd57e9847fb-CDN/lu2bv2/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":331.7999997138977,"connectEnd":331.7999997138977,"connectStart":331.7999997138977,"domainLookupEnd":331.7999997138977,"domainLookupStart":331.7999997138977,"fetchStart":331.7999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":331.7999997138977,"responseEnd":597.3999996185303,"responseStart":597.3999996185303,"secureConnectionStart":331.7999997138977},{"duration":377.7999997138977,"initiatorType":"script","name":"https://jira.mariadb.org/s/c32eb0da7ad9831253f8397e6cc26afd-CDN/lu2bv2/820016/12ta74/2380add21a9a1006587582385952de73/_/download/contextbatch/js/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true","startTime":332,"connectEnd":332,"connectStart":332,"domainLookupEnd":332,"domainLookupStart":332,"fetchStart":332,"redirectEnd":0,"redirectStart":0,"requestStart":332,"responseEnd":709.7999997138977,"responseStart":709.7999997138977,"secureConnectionStart":332},{"duration":381.80000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/s/bc0bcb146314416123c992714ee00ff7-CDN/lu2bv2/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":332.19999980926514,"connectEnd":332.19999980926514,"connectStart":332.19999980926514,"domainLookupEnd":332.19999980926514,"domainLookupStart":332.19999980926514,"fetchStart":332.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":332.19999980926514,"responseEnd":714,"responseStart":714,"secureConnectionStart":332.19999980926514},{"duration":382.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":332.3999996185303,"connectEnd":332.3999996185303,"connectStart":332.3999996185303,"domainLookupEnd":332.3999996185303,"domainLookupStart":332.3999996185303,"fetchStart":332.3999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":332.3999996185303,"responseEnd":714.8999996185303,"responseStart":714.8999996185303,"secureConnectionStart":332.3999996185303},{"duration":382.7999997138977,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":332.59999990463257,"connectEnd":332.59999990463257,"connectStart":332.59999990463257,"domainLookupEnd":332.59999990463257,"domainLookupStart":332.59999990463257,"fetchStart":332.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":332.59999990463257,"responseEnd":715.3999996185303,"responseStart":715.3999996185303,"secureConnectionStart":332.59999990463257},{"duration":413.1000003814697,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2bv2/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":332.8999996185303,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":332.8999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":746,"responseStart":0,"secureConnectionStart":0},{"duration":382.8999996185303,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":333,"connectEnd":333,"connectStart":333,"domainLookupEnd":333,"domainLookupStart":333,"fetchStart":333,"redirectEnd":0,"redirectStart":0,"requestStart":333,"responseEnd":715.8999996185303,"responseStart":715.8999996185303,"secureConnectionStart":333},{"duration":413,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2bv2/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/css/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.css?jira.create.linked.issue=true","startTime":333.2999997138977,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":333.2999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":746.2999997138977,"responseStart":0,"secureConnectionStart":0},{"duration":383,"initiatorType":"script","name":"https://jira.mariadb.org/s/719848dd97ebe0663199f49a3936487a-CDN/lu2bv2/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/js/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.js?jira.create.linked.issue=true&locale=en","startTime":333.3999996185303,"connectEnd":333.3999996185303,"connectStart":333.3999996185303,"domainLookupEnd":333.3999996185303,"domainLookupStart":333.3999996185303,"fetchStart":333.3999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":333.3999996185303,"responseEnd":716.3999996185303,"responseStart":716.3999996185303,"secureConnectionStart":333.3999996185303},{"duration":1033.8000001907349,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":334.2999997138977,"connectEnd":334.2999997138977,"connectStart":334.2999997138977,"domainLookupEnd":334.2999997138977,"domainLookupStart":334.2999997138977,"fetchStart":334.2999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":334.2999997138977,"responseEnd":1368.0999999046326,"responseStart":1368.0999999046326,"secureConnectionStart":334.2999997138977},{"duration":1034.1000003814697,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":334.3999996185303,"connectEnd":334.3999996185303,"connectStart":334.3999996185303,"domainLookupEnd":334.3999996185303,"domainLookupStart":334.3999996185303,"fetchStart":334.3999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":334.3999996185303,"responseEnd":1368.5,"responseStart":1368.5,"secureConnectionStart":334.3999996185303},{"duration":607.3999996185303,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":758.5,"connectEnd":758.5,"connectStart":758.5,"domainLookupEnd":758.5,"domainLookupStart":758.5,"fetchStart":758.5,"redirectEnd":0,"redirectStart":0,"requestStart":758.5,"responseEnd":1365.8999996185303,"responseStart":1365.8999996185303,"secureConnectionStart":758.5},{"duration":353.90000009536743,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":1063.7999997138977,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1063.7999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1417.6999998092651,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":151,"responseStart":326,"responseEnd":328,"domLoading":329,"domInteractive":1442,"domContentLoadedEventStart":1442,"domContentLoadedEventEnd":1488,"domComplete":1821,"loadEventStart":1821,"loadEventEnd":1822,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1421.7999997138977},{"name":"bigPipe.sidebar-id.end","time":1422.5999999046326},{"name":"bigPipe.activity-panel-pipe-id.start","time":1422.6999998092651},{"name":"bigPipe.activity-panel-pipe-id.end","time":1424.0999999046326},{"name":"activityTabFullyLoaded","time":1504.5}],"measures":[],"correlationId":"6e4ad0c90174a6","effectiveType":"4g","downlink":9.7,"rtt":0,"serverDuration":112,"dbReadsTimeInMs":16,"dbConnsTimeInMs":26,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
I would like to work on this issue.