An attempt to start MariaDB 10.2 (as of 39d2c7b18d, Oct 27) on a simple MySQL 5.7 datadir ends with the error:
2016-10-29 12:45:31 140477392623488 [ERROR] Fatal error: mysql.user table is damaged or in unsupported 3.20 format.
I tried to start the server with --skip-grant-tables and run mysql_upgrade to see if we can work around the problem this way if it comes to it; the server starts, but mysql_upgrade throws all kinds of errors. At this point I'm not sure whether it's because of skip-grant-tables (I doubt that), or it will be the next problem on the way of fixing MySQL 5.7 => MariaDB 10.2 upgrade.
This is something that Debian introduced in their MariaDB packages to avoid cross-grade failures which can leave the installation in inconsistent state.
If it discovers that an upgrade from MySQL 5.7 to 10.0 is performed, it backs up the old (5.7) datadir somewhere, and installs 10.0 on a clean datadir, so that the data could be converted/imported later if needed. I can't say off the top of my head which name it gives to the 5.7 datadir, but it should be easy to find.
Elena Stepanova
added a comment - This is something that Debian introduced in their MariaDB packages to avoid cross-grade failures which can leave the installation in inconsistent state.
If it discovers that an upgrade from MySQL 5.7 to 10.0 is performed, it backs up the old (5.7) datadir somewhere, and installs 10.0 on a clean datadir, so that the data could be converted/imported later if needed. I can't say off the top of my head which name it gives to the 5.7 datadir, but it should be easy to find.
Yeah, a dialog stated I should create a backup of all the databases first and then re-import it, but when I do that, MariaDB states the users table has issues and won't start, which would make sense based on MySQL 5.7.x changes. So, is there anyway to get the all of the databases re-imported along with the users table? I could have thousands of MySQL users...
OwN-3m-All
added a comment - Yeah, a dialog stated I should create a backup of all the databases first and then re-import it, but when I do that, MariaDB states the users table has issues and won't start, which would make sense based on MySQL 5.7.x changes. So, is there anyway to get the all of the databases re-imported along with the users table? I could have thousands of MySQL users...
Hi,
the following script permits to rollback to mysql-server-5.7 for users that are not able to import their DB into mariadb-server-10.0. rollback_mysql5.7.sh
May I suggest that the installation of mariadb-server-10.0 do not overwrite the '/etc/mysql/debian-start' script and instead rename it to '/etc/mysql/debian-start-5.7' as it does for '/etc/mysql/debian.cnf' ?
This way we could remove the part in the script that need to download and extract the original '/etc/mysql/debian-start' script.
Faustin Lammler
added a comment - - edited Hi,
the following script permits to rollback to mysql-server-5.7 for users that are not able to import their DB into mariadb-server-10.0.
rollback_mysql5.7.sh
May I suggest that the installation of mariadb-server-10.0 do not overwrite the '/etc/mysql/debian-start' script and instead rename it to '/etc/mysql/debian-start-5.7' as it does for '/etc/mysql/debian.cnf' ?
This way we could remove the part in the script that need to download and extract the original '/etc/mysql/debian-start' script.
cvicentiu Can you check if either one is a duplicate and should be cleaned away?
Otto Kekäläinen
added a comment - I just noticed the line
alter table mysql.user add column `Password` char(41) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '' after `user`
in https://github.com/MariaDB/server/commit/ad4239cc3dc7ad5f6f264e1fb3cf6d24084bda90#diff-e5e5c9a25c77f21cce4305ecb13c1524 (added to scripts/mysql_to_mariadb.sql)
looks very similar to the line
ALTER TABLE user ADD Password char(41) character set latin1 collate latin1_bin NOT NULL default '' AFTER User;
in https://github.com/mariadb/server/commit/fdfdea40f1b9d029de59131f54096c1b044ffdfa#diff-31d16d61530087cf04e29a2667c5bda0 (added to scripts/mysql_system_tables_fix.sql)
cvicentiu Can you check if either one is a duplicate and should be cleaned away?
Currently upgrading from MySQL 5.7 to MariaDB 10.3 requires and extra mysql_upgrade run.
Otto Kekäläinen
added a comment - Related downstream issue: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=926231
Currently upgrading from MySQL 5.7 to MariaDB 10.3 requires and extra mysql_upgrade run.
People
Vicențiu Ciorbaru
Elena Stepanova
Votes:
1Vote for this issue
Watchers:
7Start watching this issue
Dates
Created:
Updated:
Resolved:
Git Integration
Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.
{"report":{"fcp":867.3000001907349,"ttfb":252.5,"pageVisibility":"visible","entityId":58730,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"bd2fff4c-cd03-4309-b392-e7a705bc2e65","navigationType":0,"readyForUser":948.5999999046326,"redirectCount":0,"resourceLoadedEnd":602.5,"resourceLoadedStart":261.09999990463257,"resourceTiming":[{"duration":60.700000286102295,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":261.09999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":261.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":321.80000019073486,"responseStart":0,"secureConnectionStart":0},{"duration":61.09999990463257,"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":261.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":261.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":322.59999990463257,"responseStart":0,"secureConnectionStart":0},{"duration":233.80000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":261.69999980926514,"connectEnd":261.69999980926514,"connectStart":261.69999980926514,"domainLookupEnd":261.69999980926514,"domainLookupStart":261.69999980926514,"fetchStart":261.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":326.59999990463257,"responseEnd":495.5,"responseStart":340.5,"secureConnectionStart":261.69999980926514},{"duration":340.09999990463257,"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":262.40000009536743,"connectEnd":325.5,"connectStart":325.5,"domainLookupEnd":325.5,"domainLookupStart":325.5,"fetchStart":262.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":326.40000009536743,"responseEnd":602.5,"responseStart":339,"secureConnectionStart":325.5},{"duration":77.59999990463257,"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":262.59999990463257,"connectEnd":262.59999990463257,"connectStart":262.59999990463257,"domainLookupEnd":262.59999990463257,"domainLookupStart":262.59999990463257,"fetchStart":262.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":326.80000019073486,"responseEnd":340.19999980926514,"responseStart":337.59999990463257,"secureConnectionStart":262.59999990463257},{"duration":90.30000019073486,"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":262.69999980926514,"connectEnd":262.69999980926514,"connectStart":262.69999980926514,"domainLookupEnd":262.69999980926514,"domainLookupStart":262.69999980926514,"fetchStart":262.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":330.19999980926514,"responseEnd":353,"responseStart":349.30000019073486,"secureConnectionStart":262.69999980926514},{"duration":89.19999980926514,"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":262.90000009536743,"connectEnd":262.90000009536743,"connectStart":262.90000009536743,"domainLookupEnd":262.90000009536743,"domainLookupStart":262.90000009536743,"fetchStart":262.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":329.5,"responseEnd":352.09999990463257,"responseStart":348.5,"secureConnectionStart":262.90000009536743},{"duration":64.40000009536743,"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":263.09999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":263.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":327.5,"responseStart":0,"secureConnectionStart":0},{"duration":90.10000038146973,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":263.19999980926514,"connectEnd":263.19999980926514,"connectStart":263.19999980926514,"domainLookupEnd":263.19999980926514,"domainLookupStart":263.19999980926514,"fetchStart":263.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":330.69999980926514,"responseEnd":353.30000019073486,"responseStart":350,"secureConnectionStart":263.19999980926514},{"duration":67.09999990463257,"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":263.40000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":263.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":330.5,"responseStart":0,"secureConnectionStart":0},{"duration":93,"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":263.59999990463257,"connectEnd":263.59999990463257,"connectStart":263.59999990463257,"domainLookupEnd":263.59999990463257,"domainLookupStart":263.59999990463257,"fetchStart":263.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":333.69999980926514,"responseEnd":356.59999990463257,"responseStart":354.30000019073486,"secureConnectionStart":263.59999990463257},{"duration":287.90000009536743,"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":265.59999990463257,"connectEnd":265.59999990463257,"connectStart":265.59999990463257,"domainLookupEnd":265.59999990463257,"domainLookupStart":265.59999990463257,"fetchStart":265.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":419.30000019073486,"responseEnd":553.5,"responseStart":549.3000001907349,"secureConnectionStart":265.59999990463257},{"duration":289,"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":265.69999980926514,"connectEnd":265.69999980926514,"connectStart":265.69999980926514,"domainLookupEnd":265.69999980926514,"domainLookupStart":265.69999980926514,"fetchStart":265.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":510.69999980926514,"responseEnd":554.6999998092651,"responseStart":552.0999999046326,"secureConnectionStart":265.69999980926514},{"duration":215.80000019073486,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":625.5999999046326,"connectEnd":625.5999999046326,"connectStart":625.5999999046326,"domainLookupEnd":625.5999999046326,"domainLookupStart":625.5999999046326,"fetchStart":625.5999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":806.9000000953674,"responseEnd":841.4000000953674,"responseStart":839.5999999046326,"secureConnectionStart":625.5999999046326},{"duration":177.7999997138977,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":860.8000001907349,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":860.8000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1038.5999999046326,"responseStart":0,"secureConnectionStart":0},{"duration":198.40000009536743,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":881.5,"connectEnd":881.5,"connectStart":881.5,"domainLookupEnd":881.5,"domainLookupStart":881.5,"fetchStart":881.5,"redirectEnd":0,"redirectStart":0,"requestStart":1049.5,"responseEnd":1079.9000000953674,"responseStart":1079.1999998092651,"secureConnectionStart":881.5}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":73,"responseStart":253,"responseEnd":261,"domLoading":256,"domInteractive":1070,"domContentLoadedEventStart":1070,"domContentLoadedEventEnd":1116,"domComplete":1536,"loadEventStart":1536,"loadEventEnd":1536,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1040.9000000953674},{"name":"bigPipe.sidebar-id.end","time":1041.5999999046326},{"name":"bigPipe.activity-panel-pipe-id.start","time":1041.8000001907349},{"name":"bigPipe.activity-panel-pipe-id.end","time":1043.5},{"name":"activityTabFullyLoaded","time":1140.9000000953674}],"measures":[],"correlationId":"29e4c4bab6cfc2","effectiveType":"4g","downlink":9.1,"rtt":0,"serverDuration":103,"dbReadsTimeInMs":11,"dbConnsTimeInMs":20,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
This is something that Debian introduced in their MariaDB packages to avoid cross-grade failures which can leave the installation in inconsistent state.
If it discovers that an upgrade from MySQL 5.7 to 10.0 is performed, it backs up the old (5.7) datadir somewhere, and installs 10.0 on a clean datadir, so that the data could be converted/imported later if needed. I can't say off the top of my head which name it gives to the 5.7 datadir, but it should be easy to find.