Weve got two tables accessing a my.cnf file.
The table mycnf accesses /etc/mysql/my.cnf this file belongs to root, so MySQLd is not able to change anything. The second mycnf2 is a file in the test schema belonging to mysql:mysql.
CREATE TABLE `mycnf` (
|
`section` char(20) DEFAULT NULL `flag`=1,
|
`keyname` char(20) DEFAULT NULL `flag`=2,
|
`value` char(200) DEFAULT NULL
|
) ENGINE=CONNECT DEFAULT CHARSET=latin1 `table_type`=ini `file_name`='/etc/mysql/my.cnf' `option_list`='layout=Row' ;
|
|
CREATE TABLE `mycnf2` (
|
`section` char(20) DEFAULT NULL `flag`=1,
|
`keyname` char(20) DEFAULT NULL `flag`=2,
|
`value` char(200) DEFAULT NULL
|
) ENGINE=CONNECT DEFAULT CHARSET=latin1 `table_type`=ini `file_name`='my.cnf' `option_list`='layout=Row';
|
Lets work with mycnf2:
MariaDB [test]> select * from mycnf2 where section='mysql';
|
+---------+----------------------+-------+
|
| section | keyname | value |
|
+---------+----------------------+-------+
|
| mysql | #no-auto-rehash # fa | |
|
+---------+----------------------+-------+
|
MariaDB [test]> insert into mycnf2 values('mysql','user','erkan');
|
Query OK, 1 row affected (0.00 sec)
|
MariaDB [test]> select * from mycnf2 where section='mysql';
|
+---------+----------------------+-------+
|
| section | keyname | value |
|
+---------+----------------------+-------+
|
| mysql | #no-auto-rehash # fa | |
|
| mysql | user | erkan |
|
Ok everything worked. Now lets work with mycnf (/etc/mysql/my.cnf)
MariaDB [test]> select * from mycnf where section='mysql';
|
+---------+----------------------+-------+
|
| section | keyname | value |
|
+---------+----------------------+-------+
|
| mysql | #no-auto-rehash # fa | |
|
+---------+----------------------+-------+
|
MariaDB [test]> insert into mycnf values('mysql','user','erkan');
|
Query OK, 1 row affected (0.00 sec)
|
The same output as for mycnf2
MariaDB [test]> select * from mycnf where section='mysql';
|
+---------+----------------------+-------+
|
| section | keyname | value |
|
+---------+----------------------+-------+
|
| mysql | #no-auto-rehash # fa | |
|
+---------+----------------------+-------+
|
1 row in set (0.00 sec)
|
I would expect an error if MySQL/ConnectSE is not able to perform the task because of insufficient permissions on filesystemlevel.
Regards
Erkan
{"report":{"fcp":933.7000000178814,"ttfb":311,"pageVisibility":"visible","entityId":25040,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"73c2d22c-a181-4a72-b886-437af2db203d","navigationType":0,"readyForUser":1018.4000000059605,"redirectCount":0,"resourceLoadedEnd":1197.4000000059605,"resourceLoadedStart":319.40000000596046,"resourceTiming":[{"duration":87.69999998807907,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bv2/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":319.40000000596046,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":319.40000000596046,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":407.09999999403954,"responseStart":0,"secureConnectionStart":0},{"duration":92,"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":319.7000000178814,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":319.7000000178814,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":411.7000000178814,"responseStart":0,"secureConnectionStart":0},{"duration":147.09999999403954,"initiatorType":"script","name":"https://jira.mariadb.org/s/e9b27a47da5fb0f74a35acd57e9847fb-CDN/lu2bv2/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":319.90000000596046,"connectEnd":319.90000000596046,"connectStart":319.90000000596046,"domainLookupEnd":319.90000000596046,"domainLookupStart":319.90000000596046,"fetchStart":319.90000000596046,"redirectEnd":0,"redirectStart":0,"requestStart":319.90000000596046,"responseEnd":467,"responseStart":467,"secureConnectionStart":319.90000000596046},{"duration":230.60000002384186,"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":320.59999999403954,"connectEnd":320.59999999403954,"connectStart":320.59999999403954,"domainLookupEnd":320.59999999403954,"domainLookupStart":320.59999999403954,"fetchStart":320.59999999403954,"redirectEnd":0,"redirectStart":0,"requestStart":320.59999999403954,"responseEnd":551.2000000178814,"responseStart":551.2000000178814,"secureConnectionStart":320.59999999403954},{"duration":234.19999998807907,"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":320.90000000596046,"connectEnd":320.90000000596046,"connectStart":320.90000000596046,"domainLookupEnd":320.90000000596046,"domainLookupStart":320.90000000596046,"fetchStart":320.90000000596046,"redirectEnd":0,"redirectStart":0,"requestStart":320.90000000596046,"responseEnd":555.0999999940395,"responseStart":555.0999999940395,"secureConnectionStart":320.90000000596046},{"duration":234.59999999403954,"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":321,"connectEnd":321,"connectStart":321,"domainLookupEnd":321,"domainLookupStart":321,"fetchStart":321,"redirectEnd":0,"redirectStart":0,"requestStart":321,"responseEnd":555.5999999940395,"responseStart":555.5999999940395,"secureConnectionStart":321},{"duration":234.69999998807907,"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":321.2000000178814,"connectEnd":321.2000000178814,"connectStart":321.2000000178814,"domainLookupEnd":321.2000000178814,"domainLookupStart":321.2000000178814,"fetchStart":321.2000000178814,"redirectEnd":0,"redirectStart":0,"requestStart":321.2000000178814,"responseEnd":555.9000000059605,"responseStart":555.9000000059605,"secureConnectionStart":321.2000000178814},{"duration":289.09999999403954,"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":321.40000000596046,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":321.40000000596046,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":610.5,"responseStart":0,"secureConnectionStart":0},{"duration":234.7000000178814,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":321.5,"connectEnd":321.5,"connectStart":321.5,"domainLookupEnd":321.5,"domainLookupStart":321.5,"fetchStart":321.5,"redirectEnd":0,"redirectStart":0,"requestStart":321.5,"responseEnd":556.2000000178814,"responseStart":556.2000000178814,"secureConnectionStart":321.5},{"duration":288.90000000596046,"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":321.80000001192093,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":321.80000001192093,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":610.7000000178814,"responseStart":0,"secureConnectionStart":0},{"duration":234.90000000596046,"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":321.90000000596046,"connectEnd":321.90000000596046,"connectStart":321.90000000596046,"domainLookupEnd":321.90000000596046,"domainLookupStart":321.90000000596046,"fetchStart":321.90000000596046,"redirectEnd":0,"redirectStart":0,"requestStart":321.90000000596046,"responseEnd":556.8000000119209,"responseStart":556.8000000119209,"secureConnectionStart":321.90000000596046},{"duration":721.5999999940395,"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":333,"connectEnd":333,"connectStart":333,"domainLookupEnd":333,"domainLookupStart":333,"fetchStart":333,"redirectEnd":0,"redirectStart":0,"requestStart":333,"responseEnd":1054.5999999940395,"responseStart":1054.5999999940395,"secureConnectionStart":333},{"duration":787.8000000119209,"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":333.09999999403954,"connectEnd":333.09999999403954,"connectStart":333.09999999403954,"domainLookupEnd":333.09999999403954,"domainLookupStart":333.09999999403954,"fetchStart":333.09999999403954,"redirectEnd":0,"redirectStart":0,"requestStart":333.09999999403954,"responseEnd":1120.9000000059605,"responseStart":1120.9000000059605,"secureConnectionStart":333.09999999403954},{"duration":433.69999998807907,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":622.2000000178814,"connectEnd":622.2000000178814,"connectStart":622.2000000178814,"domainLookupEnd":622.2000000178814,"domainLookupStart":622.2000000178814,"fetchStart":622.2000000178814,"redirectEnd":0,"redirectStart":0,"requestStart":622.2000000178814,"responseEnd":1055.9000000059605,"responseStart":1055.9000000059605,"secureConnectionStart":622.2000000178814},{"duration":210.7999999821186,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":927.2000000178814,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":927.2000000178814,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1138,"responseStart":0,"secureConnectionStart":0},{"duration":131.5,"initiatorType":"link","name":"https://jira.mariadb.org/s/d5715adaadd168a9002b108b2b039b50-CDN/lu2bv2/820016/12ta74/be4b45e9cec53099498fa61c8b7acba4/_/download/contextbatch/css/jira.project.sidebar,-_super,-project.issue.navigator,-jira.general,-jira.browse.project,-jira.view.issue,-jira.global,-atl.general,-com.atlassian.jira.projects.sidebar.init/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true","startTime":1065.9000000059605,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1065.9000000059605,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1197.4000000059605,"responseStart":0,"secureConnectionStart":0},{"duration":122.69999998807907,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/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","startTime":1066.9000000059605,"connectEnd":1066.9000000059605,"connectStart":1066.9000000059605,"domainLookupEnd":1066.9000000059605,"domainLookupStart":1066.9000000059605,"fetchStart":1066.9000000059605,"redirectEnd":0,"redirectStart":0,"requestStart":1066.9000000059605,"responseEnd":1189.5999999940395,"responseStart":1189.5999999940395,"secureConnectionStart":1066.9000000059605},{"duration":127.59999999403954,"initiatorType":"script","name":"https://jira.mariadb.org/s/53a43b6764f587426c7bb9a150184c00-CDN/lu2bv2/820016/12ta74/be4b45e9cec53099498fa61c8b7acba4/_/download/contextbatch/js/jira.project.sidebar,-_super,-project.issue.navigator,-jira.general,-jira.browse.project,-jira.view.issue,-jira.global,-atl.general,-com.atlassian.jira.projects.sidebar.init/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true","startTime":1067.5,"connectEnd":1067.5,"connectStart":1067.5,"domainLookupEnd":1067.5,"domainLookupStart":1067.5,"fetchStart":1067.5,"redirectEnd":0,"redirectStart":0,"requestStart":1067.5,"responseEnd":1195.0999999940395,"responseStart":1195.0999999940395,"secureConnectionStart":1067.5}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":130,"responseStart":311,"responseEnd":333,"domLoading":315,"domInteractive":1200,"domContentLoadedEventStart":1200,"domContentLoadedEventEnd":1244,"domComplete":1734,"loadEventStart":1734,"loadEventEnd":1736,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1124.9000000059605},{"name":"bigPipe.sidebar-id.end","time":1125.800000011921},{"name":"bigPipe.activity-panel-pipe-id.start","time":1126},{"name":"bigPipe.activity-panel-pipe-id.end","time":1128.300000011921},{"name":"activityTabFullyLoaded","time":1254.800000011921}],"measures":[],"correlationId":"223b133c94d4dc","effectiveType":"4g","downlink":9.1,"rtt":0,"serverDuration":112,"dbReadsTimeInMs":10,"dbConnsTimeInMs":18,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}