I use 0 for autocommit variable. I was surprised a bit to find that setting
SET global AUTOCOMMIT=0;
is valid only until service restart. Then I get default (1) value again. To make it persistent I wrote it into my.cfg/my.ini file. Now it works.
But I would like to ask possibility to set the variable usind "SET" command with some keyword to make it retentive.
As far as I understand, the only practical effect of this MySQL feature on real-world environments is bringing uncertainty about the actual servers configuration. It allows to change a variable and make the change survive a restart without changing my.cnf: this is strictly against the modern way to handle systems (infrastructure as code paradigm, devops, SRE, whatever).
I agree that an SQL command should not modify a configuration file. That could even worsen the situation, because the actual configuration file on a server wouldn't match the one you have in your repository.
Please, don't implement this command or any variant.
Federico Razzoli
added a comment - As far as I understand, the only practical effect of this MySQL feature on real-world environments is bringing uncertainty about the actual servers configuration. It allows to change a variable and make the change survive a restart without changing my.cnf: this is strictly against the modern way to handle systems (infrastructure as code paradigm, devops, SRE, whatever).
I agree that an SQL command should not modify a configuration file. That could even worsen the situation, because the actual configuration file on a server wouldn't match the one you have in your repository.
Please, don't implement this command or any variant.
Even though it's unclear whether this will be implemented, since it's still open, I'm linking it to the parent list of MySQL-8 compatibility tasks.
Ian Gilfillan
added a comment - Even though it's unclear whether this will be implemented, since it's still open, I'm linking it to the parent list of MySQL-8 compatibility tasks.
We could have a special, always included 'persistent.cnf' file in that is modified with SET PERSISTENT ...
This would always be loaded last from my.cnf.
At least, the behavior of this feature would be easy to document and understand
Michael Widenius
added a comment - We could have a special, always included 'persistent.cnf' file in that is modified with SET PERSISTENT ...
This would always be loaded last from my.cnf.
At least, the behavior of this feature would be easy to document and understand
This would still cause inconsistencies between (for example) a user's Ansible repository and MariaDB configuration. Even if the repository contains persistent.cnf, it will be different from the one on the server.
Federico Razzoli
added a comment - This would still cause inconsistencies between (for example) a user's Ansible repository and MariaDB configuration. Even if the repository contains persistent.cnf, it will be different from the one on the server.
Michaël de groot
added a comment - Good configuration management overwrites 'unknown' configuration files like 'persistent.cnf', so this is compatible with what @monty proposed.
Check https://gitlab.com/de-groot-consultancy-ansible-roles/mariadb-mysql-galera/-/blob/beta/tasks/configure-mariadb.yml for an example.
People
Unassigned
Tadas Balaišis
Votes:
2Vote for this issue
Watchers:
14Start watching this issue
Dates
Created:
Updated:
Git Integration
Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.
{"report":{"fcp":1408.2000002861023,"ttfb":191.80000019073486,"pageVisibility":"visible","entityId":67657,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"2fba24a1-e98c-4a8a-a564-c460eb2e3fca","navigationType":0,"readyForUser":1401.7000002861023,"redirectCount":0,"resourceLoadedEnd":1011.9000000953674,"resourceLoadedStart":210.30000019073486,"resourceTiming":[{"duration":34.59999990463257,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":210.30000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":210.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":244.90000009536743,"responseStart":0,"secureConnectionStart":0},{"duration":34.700000286102295,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/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&whisper-enabled=true","startTime":210.59999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":210.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":245.30000019073486,"responseStart":0,"secureConnectionStart":0},{"duration":408.19999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":210.80000019073486,"connectEnd":210.80000019073486,"connectStart":210.80000019073486,"domainLookupEnd":210.80000019073486,"domainLookupStart":210.80000019073486,"fetchStart":210.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":271.5,"responseEnd":619,"responseStart":296.80000019073486,"secureConnectionStart":210.80000019073486},{"duration":774.3000001907349,"initiatorType":"script","name":"https://jira.mariadb.org/s/2d8175ec2fa4c816e8023260bd8c1786-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/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&whisper-enabled=true","startTime":211,"connectEnd":211,"connectStart":211,"domainLookupEnd":211,"domainLookupStart":211,"fetchStart":211,"redirectEnd":0,"redirectStart":0,"requestStart":271.59999990463257,"responseEnd":985.3000001907349,"responseStart":294.80000019073486,"secureConnectionStart":211},{"duration":94.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/a9324d6758d385eb45c462685ad88f1d-CDN/lu2cib/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":211.09999990463257,"connectEnd":211.09999990463257,"connectStart":211.09999990463257,"domainLookupEnd":211.09999990463257,"domainLookupStart":211.09999990463257,"fetchStart":211.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":271.7000002861023,"responseEnd":305.59999990463257,"responseStart":297.40000009536743,"secureConnectionStart":211.09999990463257},{"duration":96.09999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":211.30000019073486,"connectEnd":211.30000019073486,"connectStart":211.30000019073486,"domainLookupEnd":211.30000019073486,"domainLookupStart":211.30000019073486,"fetchStart":211.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":271.90000009536743,"responseEnd":307.40000009536743,"responseStart":298.59999990463257,"secureConnectionStart":211.30000019073486},{"duration":96.7000002861023,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":211.5,"connectEnd":211.5,"connectStart":211.5,"domainLookupEnd":211.5,"domainLookupStart":211.5,"fetchStart":211.5,"redirectEnd":0,"redirectStart":0,"requestStart":272.5,"responseEnd":308.2000002861023,"responseStart":300.09999990463257,"secureConnectionStart":211.5},{"duration":37.19999980926514,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2cib/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":211.7000002861023,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":211.7000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":248.90000009536743,"responseStart":0,"secureConnectionStart":0},{"duration":96.40000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":212,"connectEnd":212,"connectStart":212,"domainLookupEnd":212,"domainLookupStart":212,"fetchStart":212,"redirectEnd":0,"redirectStart":0,"requestStart":272.80000019073486,"responseEnd":308.40000009536743,"responseStart":300.90000009536743,"secureConnectionStart":212},{"duration":38.39999961853027,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2cib/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":212.2000002861023,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":212.2000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":250.59999990463257,"responseStart":0,"secureConnectionStart":0},{"duration":96.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/5d5e8fe91fbc506585e83ea3b62ccc4b-CDN/lu2cib/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":212.40000009536743,"connectEnd":212.40000009536743,"connectStart":212.40000009536743,"domainLookupEnd":212.40000009536743,"domainLookupStart":212.40000009536743,"fetchStart":212.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":272.90000009536743,"responseEnd":308.90000009536743,"responseStart":303.2000002861023,"secureConnectionStart":212.40000009536743},{"duration":798.4000000953674,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":213.40000009536743,"connectEnd":213.40000009536743,"connectStart":213.40000009536743,"domainLookupEnd":213.40000009536743,"domainLookupStart":213.40000009536743,"fetchStart":213.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":292.2000002861023,"responseEnd":1011.8000001907349,"responseStart":998.8000001907349,"secureConnectionStart":213.40000009536743},{"duration":798.4000000953674,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":213.5,"connectEnd":213.5,"connectStart":213.5,"domainLookupEnd":213.5,"domainLookupStart":213.5,"fetchStart":213.5,"redirectEnd":0,"redirectStart":0,"requestStart":309.2000002861023,"responseEnd":1011.9000000953674,"responseStart":1000.4000000953674,"secureConnectionStart":213.5},{"duration":213.80000019073486,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":800.4000000953674,"connectEnd":800.4000000953674,"connectStart":800.4000000953674,"domainLookupEnd":800.4000000953674,"domainLookupStart":800.4000000953674,"fetchStart":800.4000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":965.0999999046326,"responseEnd":1014.2000002861023,"responseStart":1009.8000001907349,"secureConnectionStart":800.4000000953674},{"duration":153.7000002861023,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1250.0999999046326,"connectEnd":1250.0999999046326,"connectStart":1250.0999999046326,"domainLookupEnd":1250.0999999046326,"domainLookupStart":1250.0999999046326,"fetchStart":1250.0999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":1372.8000001907349,"responseEnd":1403.8000001907349,"responseStart":1403.0999999046326,"secureConnectionStart":1250.0999999046326},{"duration":230.30000019073486,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":1311.9000000953674,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1311.9000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1542.2000002861023,"responseStart":0,"secureConnectionStart":0},{"duration":142.69999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/e65b778d185daf5aee24936755b43da6/_/download/contextbatch/js/browser-metrics-plugin.contrib,-_super,-project.issue.navigator,-jira.view.issue,-atl.general/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true&whisper-enabled=true","startTime":1481.4000000953674,"connectEnd":1481.4000000953674,"connectStart":1481.4000000953674,"domainLookupEnd":1481.4000000953674,"domainLookupStart":1481.4000000953674,"fetchStart":1481.4000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":1603.5,"responseEnd":1624.0999999046326,"responseStart":1620,"secureConnectionStart":1481.4000000953674}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":19,"responseStart":192,"responseEnd":208,"domLoading":208,"domInteractive":1587,"domContentLoadedEventStart":1587,"domContentLoadedEventEnd":1733,"domComplete":1908,"loadEventStart":1908,"loadEventEnd":1909,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1545.0999999046326},{"name":"bigPipe.sidebar-id.end","time":1546},{"name":"bigPipe.activity-panel-pipe-id.start","time":1546.2000002861023},{"name":"bigPipe.activity-panel-pipe-id.end","time":1547.9000000953674},{"name":"activityTabFullyLoaded","time":1811.9000000953674}],"measures":[],"correlationId":"700a0bcf24d8ef","effectiveType":"4g","downlink":9.6,"rtt":0,"serverDuration":92,"dbReadsTimeInMs":9,"dbConnsTimeInMs":17,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
As far as I understand, the only practical effect of this MySQL feature on real-world environments is bringing uncertainty about the actual servers configuration. It allows to change a variable and make the change survive a restart without changing my.cnf: this is strictly against the modern way to handle systems (infrastructure as code paradigm, devops, SRE, whatever).
I agree that an SQL command should not modify a configuration file. That could even worsen the situation, because the actual configuration file on a server wouldn't match the one you have in your repository.
Please, don't implement this command or any variant.