Hello, I'm building a custom script which builds/installs/upgrades mariadb from 10.0.22 to 10.1.9. One part of this script is to run mysql_upgrade to ensure that the dbs are properly upgraded from 10.0.22 to 10.1.9.
In 10.0.22 mysql_upgrade works without issues if '/etc/my.cnf.d' doesn't exists, but seems that this is an issue with 10.1.9:
root@debian8:~# mysql_upgrade --force -u root -pMyPass -h localhost
|
mysql_upgrade: Can't read dir of '/etc/my.cnf.d' (Errcode: 2 "No such file or directory")
|
Fatal error in defaults handling. Program aborted
|
Segmentation fault
|
NOTE: I don't use /etc/my.cnf.d nor I want to.
{"report":{"fcp":781.9000000953674,"ttfb":195.40000009536743,"pageVisibility":"visible","entityId":54424,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"3606b6a4-dbc4-491c-8ec7-c5663e8724bc","navigationType":0,"readyForUser":853.5,"redirectCount":0,"resourceLoadedEnd":499,"resourceLoadedStart":208.90000009536743,"resourceTiming":[{"duration":11.700000047683716,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":208.90000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":208.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":220.60000014305115,"responseStart":0,"secureConnectionStart":0},{"duration":12.600000143051147,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2bu7/820016/12ta74/8679b4946efa1a0bb029a3a22206fb5d/_/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":209.20000004768372,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":209.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":221.80000019073486,"responseStart":0,"secureConnectionStart":0},{"duration":184.70000004768372,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":209.20000004768372,"connectEnd":209.20000004768372,"connectStart":209.20000004768372,"domainLookupEnd":209.20000004768372,"domainLookupStart":209.20000004768372,"fetchStart":209.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":227.70000004768372,"responseEnd":393.90000009536743,"responseStart":259,"secureConnectionStart":209.20000004768372},{"duration":289.09999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/099b33461394b8015fc36c0a4b96e19f-CDN/lu2bu7/820016/12ta74/8679b4946efa1a0bb029a3a22206fb5d/_/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":209.90000009536743,"connectEnd":209.90000009536743,"connectStart":209.90000009536743,"domainLookupEnd":209.90000009536743,"domainLookupStart":209.90000009536743,"fetchStart":209.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":228.70000004768372,"responseEnd":499,"responseStart":283.90000009536743,"secureConnectionStart":209.90000009536743},{"duration":47.700000047683716,"initiatorType":"script","name":"https://jira.mariadb.org/s/94c15bff32baef80f4096a08aceae8bc-CDN/lu2bu7/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":210,"connectEnd":210,"connectStart":210,"domainLookupEnd":210,"domainLookupStart":210,"fetchStart":210,"redirectEnd":0,"redirectStart":0,"requestStart":228.80000019073486,"responseEnd":257.7000000476837,"responseStart":256.7000000476837,"secureConnectionStart":210},{"duration":50.10000014305115,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":210.20000004768372,"connectEnd":210.20000004768372,"connectStart":210.20000004768372,"domainLookupEnd":210.20000004768372,"domainLookupStart":210.20000004768372,"fetchStart":210.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":229.30000019073486,"responseEnd":260.30000019073486,"responseStart":257.90000009536743,"secureConnectionStart":210.20000004768372},{"duration":50.200000047683716,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":210.20000004768372,"connectEnd":210.20000004768372,"connectStart":210.20000004768372,"domainLookupEnd":210.20000004768372,"domainLookupStart":210.20000004768372,"fetchStart":210.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":229.10000014305115,"responseEnd":260.40000009536743,"responseStart":258.40000009536743,"secureConnectionStart":210.20000004768372},{"duration":17,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2bu7/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":210.30000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":210.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":227.30000019073486,"responseStart":0,"secureConnectionStart":0},{"duration":61.59999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":210.40000009536743,"connectEnd":210.40000009536743,"connectStart":210.40000009536743,"domainLookupEnd":210.40000009536743,"domainLookupStart":210.40000009536743,"fetchStart":210.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":232.10000014305115,"responseEnd":272,"responseStart":269.5,"secureConnectionStart":210.40000009536743},{"duration":17.90000009536743,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2bu7/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":210.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":210.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":228.40000009536743,"responseStart":0,"secureConnectionStart":0},{"duration":62,"initiatorType":"script","name":"https://jira.mariadb.org/s/3339d87fa2538a859872f2df449bf8d0-CDN/lu2bu7/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":210.5,"connectEnd":210.5,"connectStart":210.5,"domainLookupEnd":210.5,"domainLookupStart":210.5,"fetchStart":210.5,"redirectEnd":0,"redirectStart":0,"requestStart":233.90000009536743,"responseEnd":272.5,"responseStart":270.2000000476837,"secureConnectionStart":210.5},{"duration":228,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":219.80000019073486,"connectEnd":219.80000019073486,"connectStart":219.80000019073486,"domainLookupEnd":219.80000019073486,"domainLookupStart":219.80000019073486,"fetchStart":219.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":249.40000009536743,"responseEnd":447.80000019073486,"responseStart":441.80000019073486,"secureConnectionStart":219.80000019073486},{"duration":221.80000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":227.5,"connectEnd":227.5,"connectStart":227.5,"domainLookupEnd":227.5,"domainLookupStart":227.5,"fetchStart":227.5,"redirectEnd":0,"redirectStart":0,"requestStart":272.2000000476837,"responseEnd":449.30000019073486,"responseStart":445.40000009536743,"secureConnectionStart":227.5},{"duration":126.20000004768372,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":541.1000001430511,"connectEnd":541.1000001430511,"connectStart":541.1000001430511,"domainLookupEnd":541.1000001430511,"domainLookupStart":541.1000001430511,"fetchStart":541.1000001430511,"redirectEnd":0,"redirectStart":0,"requestStart":633.6000001430511,"responseEnd":667.3000001907349,"responseStart":666.3000001907349,"secureConnectionStart":541.1000001430511},{"duration":118.40000009536743,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":775,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":775,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":893.4000000953674,"responseStart":0,"secureConnectionStart":0},{"duration":145.20000004768372,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":781.9000000953674,"connectEnd":781.9000000953674,"connectStart":781.9000000953674,"domainLookupEnd":781.9000000953674,"domainLookupStart":781.9000000953674,"fetchStart":781.9000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":894,"responseEnd":927.1000001430511,"responseStart":926.3000001907349,"secureConnectionStart":781.9000000953674}],"fetchStart":1,"domainLookupStart":1,"domainLookupEnd":1,"connectStart":1,"connectEnd":1,"requestStart":41,"responseStart":196,"responseEnd":227,"domLoading":199,"domInteractive":957,"domContentLoadedEventStart":957,"domContentLoadedEventEnd":1005,"domComplete":1259,"loadEventStart":1259,"loadEventEnd":1259,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":925.2000000476837},{"name":"bigPipe.sidebar-id.end","time":926},{"name":"bigPipe.activity-panel-pipe-id.start","time":926.2000000476837},{"name":"bigPipe.activity-panel-pipe-id.end","time":928.7000000476837},{"name":"activityTabFullyLoaded","time":1025.1000001430511}],"measures":[],"correlationId":"56640dd6c25510","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":80,"dbReadsTimeInMs":9,"dbConnsTimeInMs":15,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
robertalks,
I've checked that neither 10.0, nor 5.5, nor MySQL up to and including 5.7 are able to start with a non-existing include directory. It appears to be reasonable, because there is no hardcoded magic about using it – the includedir directive is a part of the cnf file, so if it's there, its use is assumed to be intentional.
When standard packages are installed, they use cnf file templates, which have this directive, but they also create the desired include directory, so there is no problem with them.
Now, I don't know how your custom packaging/installation script works, but my best guess is that it uses some pre-created cnf files provided with the source code, but doesn't do the job required to make them actually usable. From the error message, it appears that you might be using support-files/rpm/my.cnf file (which is also strange since you're on Debian).
Anyway, if you do not want to use the include dir, the solution is to generate your own cnf file rather than take an existing one.