Every time I restart my MariaDB server, it comes up with multiple instances of the same two errors in an email to me titled "WARNING: mariadb-check has found corrupt tables".
However, these tables are NOT corrupt. There are two errors occurring here which are BOTH due to the table names not being escaped properly:
- The use of a '-' symbol in the database table name which the script calling mariadb-check isn't escaping
- The use of a space character in the database table name which the script calling mariadb-check isn't escaping
The two examples (also showing that they both work when the database and table names are escaped with a back-tick) are:
MariaDB [(none)]> select count(*) into @discard from mydatabase.mytable-dev;
|
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '-dev' at line 1
|
MariaDB [(none)]> select count(*) into @discard from `mydatabase`.`mytable-dev`;
|
Query OK, 1 row affected (0.000 sec)
|
|
MariaDB [(none)]>
|
and
MariaDB [(none)]> select count(*) into @discard from mydatabase.mytable name;
|
ERROR 1146 (42S02): Table 'mydatabase.mytable' doesn't exist
|
MariaDB [(none)]> select count(*) into @discard from `mydatabase`.`mytable name`;
|
Query OK, 1 row affected (0.001 sec)
|
|
MariaDB [(none)]>
|
I have traced this down to a the following change to debian/additions/debian-start.inc.sh:
https://github.com/MariaDB/server/commit/2adaf5c261df948dc89a2c2520000f8f886184b4
I have fixed my local copy by replacing the 4 instances of the now-superflous '\'' with a single back-tick. The upstream change author seems to have missed that the reason for the apostrophe combination was that the text was previously enclosed with single-quotes. I don't quite understand why the back-ticks were removed.
Happy to submit a push / merge request of my change into the repository, if I can get access to do so.
- relates to
-
MDEV-34558
debian-start reports errors when table names contain non ascii characters
-
-
Open
{"report":{"fcp":678.2000000178814,"ttfb":164.80000001192093,"pageVisibility":"visible","entityId":130702,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"f1e0ab74-d052-4808-91d7-7291a8db5148","navigationType":0,"readyForUser":750.0999999940395,"redirectCount":0,"resourceLoadedEnd":634.5999999940395,"resourceLoadedStart":170.2000000178814,"resourceTiming":[{"duration":7.199999988079071,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bv2/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":170.2000000178814,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":170.2000000178814,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":177.40000000596046,"responseStart":0,"secureConnectionStart":0},{"duration":7.200000017881393,"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":170.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":170.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":177.7000000178814,"responseStart":0,"secureConnectionStart":0},{"duration":61,"initiatorType":"script","name":"https://jira.mariadb.org/s/e9b27a47da5fb0f74a35acd57e9847fb-CDN/lu2bv2/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":170.7000000178814,"connectEnd":170.7000000178814,"connectStart":170.7000000178814,"domainLookupEnd":170.7000000178814,"domainLookupStart":170.7000000178814,"fetchStart":170.7000000178814,"redirectEnd":0,"redirectStart":0,"requestStart":170.7000000178814,"responseEnd":231.7000000178814,"responseStart":231.7000000178814,"secureConnectionStart":170.7000000178814},{"duration":153.09999999403954,"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":170.80000001192093,"connectEnd":170.80000001192093,"connectStart":170.80000001192093,"domainLookupEnd":170.80000001192093,"domainLookupStart":170.80000001192093,"fetchStart":170.80000001192093,"redirectEnd":0,"redirectStart":0,"requestStart":170.80000001192093,"responseEnd":323.90000000596046,"responseStart":323.90000000596046,"secureConnectionStart":170.80000001192093},{"duration":156.7000000178814,"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":171.09999999403954,"connectEnd":171.09999999403954,"connectStart":171.09999999403954,"domainLookupEnd":171.09999999403954,"domainLookupStart":171.09999999403954,"fetchStart":171.09999999403954,"redirectEnd":0,"redirectStart":0,"requestStart":171.09999999403954,"responseEnd":327.80000001192093,"responseStart":327.80000001192093,"secureConnectionStart":171.09999999403954},{"duration":157,"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":171.2000000178814,"connectEnd":171.2000000178814,"connectStart":171.2000000178814,"domainLookupEnd":171.2000000178814,"domainLookupStart":171.2000000178814,"fetchStart":171.2000000178814,"redirectEnd":0,"redirectStart":0,"requestStart":171.2000000178814,"responseEnd":328.2000000178814,"responseStart":328.2000000178814,"secureConnectionStart":171.2000000178814},{"duration":157.2000000178814,"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":171.5,"connectEnd":171.5,"connectStart":171.5,"domainLookupEnd":171.5,"domainLookupStart":171.5,"fetchStart":171.5,"redirectEnd":0,"redirectStart":0,"requestStart":171.5,"responseEnd":328.7000000178814,"responseStart":328.7000000178814,"secureConnectionStart":171.5},{"duration":199.7999999821186,"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":171.7000000178814,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":171.7000000178814,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":371.5,"responseStart":0,"secureConnectionStart":0},{"duration":157.40000000596046,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":171.80000001192093,"connectEnd":171.80000001192093,"connectStart":171.80000001192093,"domainLookupEnd":171.80000001192093,"domainLookupStart":171.80000001192093,"fetchStart":171.80000001192093,"redirectEnd":0,"redirectStart":0,"requestStart":171.80000001192093,"responseEnd":329.2000000178814,"responseStart":329.2000000178814,"secureConnectionStart":171.80000001192093},{"duration":199.7000000178814,"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":172,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":172,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":371.7000000178814,"responseStart":0,"secureConnectionStart":0},{"duration":157.7000000178814,"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":172.09999999403954,"connectEnd":172.09999999403954,"connectStart":172.09999999403954,"domainLookupEnd":172.09999999403954,"domainLookupStart":172.09999999403954,"fetchStart":172.09999999403954,"redirectEnd":0,"redirectStart":0,"requestStart":172.09999999403954,"responseEnd":329.80000001192093,"responseStart":329.80000001192093,"secureConnectionStart":172.09999999403954},{"duration":272.7000000178814,"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":173,"connectEnd":173,"connectStart":173,"domainLookupEnd":173,"domainLookupStart":173,"fetchStart":173,"redirectEnd":0,"redirectStart":0,"requestStart":173,"responseEnd":445.7000000178814,"responseStart":445.7000000178814,"secureConnectionStart":173},{"duration":273.10000002384186,"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":173.09999999403954,"connectEnd":173.09999999403954,"connectStart":173.09999999403954,"domainLookupEnd":173.09999999403954,"domainLookupStart":173.09999999403954,"fetchStart":173.09999999403954,"redirectEnd":0,"redirectStart":0,"requestStart":173.09999999403954,"responseEnd":446.2000000178814,"responseStart":446.2000000178814,"secureConnectionStart":173.09999999403954},{"duration":8.199999988079071,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":382.90000000596046,"connectEnd":382.90000000596046,"connectStart":382.90000000596046,"domainLookupEnd":382.90000000596046,"domainLookupStart":382.90000000596046,"fetchStart":382.90000000596046,"redirectEnd":0,"redirectStart":0,"requestStart":382.90000000596046,"responseEnd":391.09999999403954,"responseStart":391.09999999403954,"secureConnectionStart":382.90000000596046},{"duration":232,"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":402.59999999403954,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":402.59999999403954,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":634.5999999940395,"responseStart":0,"secureConnectionStart":0},{"duration":442.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":403.40000000596046,"connectEnd":403.40000000596046,"connectStart":403.40000000596046,"domainLookupEnd":403.40000000596046,"domainLookupStart":403.40000000596046,"fetchStart":403.40000000596046,"redirectEnd":0,"redirectStart":0,"requestStart":403.40000000596046,"responseEnd":846.0999999940395,"responseStart":846.0999999940395,"secureConnectionStart":403.40000000596046},{"duration":447.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":403.80000001192093,"connectEnd":403.80000001192093,"connectStart":403.80000001192093,"domainLookupEnd":403.80000001192093,"domainLookupStart":403.80000001192093,"fetchStart":403.80000001192093,"redirectEnd":0,"redirectStart":0,"requestStart":403.80000001192093,"responseEnd":851.4000000059605,"responseStart":851.4000000059605,"secureConnectionStart":403.80000001192093}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":9,"responseStart":165,"responseEnd":166,"domLoading":168,"domInteractive":832,"domContentLoadedEventStart":832,"domContentLoadedEventEnd":876,"domComplete":1701,"loadEventStart":1701,"loadEventEnd":1703,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":817.2000000178814},{"name":"bigPipe.sidebar-id.end","time":817.9000000059605},{"name":"bigPipe.activity-panel-pipe-id.start","time":818.0999999940395},{"name":"bigPipe.activity-panel-pipe-id.end","time":820.5},{"name":"activityTabFullyLoaded","time":892.3000000119209}],"measures":[],"correlationId":"84bb63a115d654","effectiveType":"4g","downlink":9.6,"rtt":0,"serverDuration":97,"dbReadsTimeInMs":12,"dbConnsTimeInMs":20,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}