It appears that the change in mysql.user table from table to view has broken the ability to restore older dumps produced (for example) with MariaDB 10.3 or older.
The 10.3 dump will try to drop table user, but in 10.5 and later you cannot drop a view with "drop table" anymore (not sure when this changed).
Hence in 10.5 you get:
MariaDB [mysql]> DROP TABLE IF EXISTS `user`;
|
Query OK, 0 rows affected, 1 warning (0.000 sec)
|
MariaDB [mysql]> show warnings;
|
+-------+------+------------------------+
|
| Level | Code | Message |
|
+-------+------+------------------------+
|
| Note | 1965 | 'mysql.user' is a view |
|
+-------+------+------------------------+
|
1 row in set (0.000 sec)
|
But in the 10.3 dump you have:
--
|
-- Table structure for table `user`
|
--
|
|
DROP TABLE IF EXISTS `user`;
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
/*!40101 SET character_set_client = utf8 */;
|
CREATE TABLE `user` (
|
`Host` char(60) NOT NULL DEFAULT '',
|
`User` char(80) NOT NULL DEFAULT '',
|
`Password` char(41) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
|
`Select_priv` enum('N','Y') CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT 'N',
|
`Insert_priv` enum('N','Y') CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT 'N',
|
`Update_priv` enum('N','Y') CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT 'N',
|
[ ... ]
|
I would recommend we revert the change that disabled "drop table" for view, in the sake of compatibility.
Thanks,
Rick
- is caused by
-
MDEV-17658
change the structure of mysql.user table
-
-
Closed
{"report":{"fcp":773.8000001907349,"ttfb":134,"pageVisibility":"visible","entityId":125159,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"94bade53-7a2f-4583-a505-eafe2987a877","navigationType":0,"readyForUser":831.8000001907349,"redirectCount":0,"resourceLoadedEnd":869.8000001907349,"resourceLoadedStart":144.5,"resourceTiming":[{"duration":143.30000019073486,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":144.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":144.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":287.80000019073486,"responseStart":0,"secureConnectionStart":0},{"duration":143.0999994277954,"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":144.80000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":144.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":287.8999996185303,"responseStart":0,"secureConnectionStart":0},{"duration":152.69999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":145,"connectEnd":145,"connectStart":145,"domainLookupEnd":145,"domainLookupStart":145,"fetchStart":145,"redirectEnd":0,"redirectStart":0,"requestStart":145,"responseEnd":297.69999980926514,"responseStart":297.69999980926514,"secureConnectionStart":145},{"duration":232.80000019073486,"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":145.39999961853027,"connectEnd":145.39999961853027,"connectStart":145.39999961853027,"domainLookupEnd":145.39999961853027,"domainLookupStart":145.39999961853027,"fetchStart":145.39999961853027,"redirectEnd":0,"redirectStart":0,"requestStart":145.39999961853027,"responseEnd":378.19999980926514,"responseStart":378.19999980926514,"secureConnectionStart":145.39999961853027},{"duration":236.80000019073486,"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":145.5999994277954,"connectEnd":145.5999994277954,"connectStart":145.5999994277954,"domainLookupEnd":145.5999994277954,"domainLookupStart":145.5999994277954,"fetchStart":145.5999994277954,"redirectEnd":0,"redirectStart":0,"requestStart":145.5999994277954,"responseEnd":382.3999996185303,"responseStart":382.3999996185303,"secureConnectionStart":145.5999994277954},{"duration":237.80000019073486,"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":145.5999994277954,"connectEnd":145.5999994277954,"connectStart":145.5999994277954,"domainLookupEnd":145.5999994277954,"domainLookupStart":145.5999994277954,"fetchStart":145.5999994277954,"redirectEnd":0,"redirectStart":0,"requestStart":145.5999994277954,"responseEnd":383.3999996185303,"responseStart":383.3999996185303,"secureConnectionStart":145.5999994277954},{"duration":238.69999980926514,"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":145.69999980926514,"connectEnd":145.69999980926514,"connectStart":145.69999980926514,"domainLookupEnd":145.69999980926514,"domainLookupStart":145.69999980926514,"fetchStart":145.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":145.69999980926514,"responseEnd":384.3999996185303,"responseStart":384.3999996185303,"secureConnectionStart":145.69999980926514},{"duration":239.5,"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":145.80000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":145.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":385.30000019073486,"responseStart":0,"secureConnectionStart":0},{"duration":239.5,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":145.89999961853027,"connectEnd":145.89999961853027,"connectStart":145.89999961853027,"domainLookupEnd":145.89999961853027,"domainLookupStart":145.89999961853027,"fetchStart":145.89999961853027,"redirectEnd":0,"redirectStart":0,"requestStart":145.89999961853027,"responseEnd":385.3999996185303,"responseStart":385.3999996185303,"secureConnectionStart":145.89999961853027},{"duration":240.39999961853027,"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":146,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":146,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":386.3999996185303,"responseStart":0,"secureConnectionStart":0},{"duration":240.4000005722046,"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":146.0999994277954,"connectEnd":146.0999994277954,"connectStart":146.0999994277954,"domainLookupEnd":146.0999994277954,"domainLookupStart":146.0999994277954,"fetchStart":146.0999994277954,"redirectEnd":0,"redirectStart":0,"requestStart":146.0999994277954,"responseEnd":386.5,"responseStart":386.5,"secureConnectionStart":146.0999994277954},{"duration":349.1000003814697,"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":156.89999961853027,"connectEnd":156.89999961853027,"connectStart":156.89999961853027,"domainLookupEnd":156.89999961853027,"domainLookupStart":156.89999961853027,"fetchStart":156.89999961853027,"redirectEnd":0,"redirectStart":0,"requestStart":156.89999961853027,"responseEnd":506,"responseStart":506,"secureConnectionStart":156.89999961853027},{"duration":706.1000003814697,"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":163.69999980926514,"connectEnd":163.69999980926514,"connectStart":163.69999980926514,"domainLookupEnd":163.69999980926514,"domainLookupStart":163.69999980926514,"fetchStart":163.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":163.69999980926514,"responseEnd":869.8000001907349,"responseStart":869.8000001907349,"secureConnectionStart":163.69999980926514},{"duration":351.19999980926514,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":517,"connectEnd":517,"connectStart":517,"domainLookupEnd":517,"domainLookupStart":517,"fetchStart":517,"redirectEnd":0,"redirectStart":0,"requestStart":517,"responseEnd":868.1999998092651,"responseStart":868.1999998092651,"secureConnectionStart":517}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":14,"responseStart":134,"responseEnd":163,"domLoading":137,"domInteractive":895,"domContentLoadedEventStart":895,"domContentLoadedEventEnd":935,"domComplete":2118,"loadEventStart":2118,"loadEventEnd":2120,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":877.3999996185303},{"name":"bigPipe.sidebar-id.end","time":878.0999994277954},{"name":"bigPipe.activity-panel-pipe-id.start","time":878.3000001907349},{"name":"bigPipe.activity-panel-pipe-id.end","time":880.6999998092651},{"name":"activityTabFullyLoaded","time":946.0999994277954}],"measures":[],"correlationId":"7fc009c11fe8e2","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":63,"dbReadsTimeInMs":9,"dbConnsTimeInMs":15,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}