Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-20442

Failed to upgrade from 10.3.9 to 10.4.7

Details

    Description

      Failed to upgrade from 10.3.9 to 10.4.7

      Scenario 1:
      Follow normal procedures:
      1. install 10.4.7.
      2. Start MariaDB on the 10.3.9.
      3. Run mysql_upgrade and everything is OK.
      4. Restart MariaDB but it hangs. No socket file is generated. "mysqld.err.upgrade" is attached for reference.

      Scenario 2:
      Use export/import method:
      1. install 10.4.7.
      2. Start MariaDB on the 10.3.9.
      3. Run mysql_upgrade and everything is OK.
      4. Run mysqldump to export user database and 'mysql' database data.
      5. Run mysql_install_db to create a new a new 'empty' MariaDB server.
      6. Import the user database data into the new MariaDB server and restart it sucessfully.
      7. import the 'mysql' database data into the new MariaDB server. "mysql_data.sql" is attached for reference.
      8. Restart the new server but it hangs. same symptom as scenario 1, no socket file is generated. "mysqld.err.dump" is attached for reference.
      9 It can restart MariaDB successfully with --skip-grant-tables option.

      It seems that mysql_upgrade cannot ensures that the system tables in the mysql database are fully compatible with the new version. "my.cnf" is attached for reference.

      Please advise how to solve the upgrade problem.

      Attachments

        1. my.cnf
          3 kB
        2. mysql_data.sql
          577 kB
        3. mysqld.err.dump
          2 kB
        4. mysqld.err.upgrade
          2 kB

        Issue Links

          Activity

            What does "Start MariaDB on the 10.3.9" mean in both your scenarios? Start MariaDB server 10.3.9, or start MariaDB server 10.4.7 on the database created by 10.3.9, or...?

            elenst Elena Stepanova added a comment - What does "Start MariaDB on the 10.3.9" mean in both your scenarios? Start MariaDB server 10.3.9, or start MariaDB server 10.4.7 on the database created by 10.3.9, or...?
            ktchow_ogcio Chow King Tak added a comment - - edited

            I mean I start MariaDB server 10.4.7 on the database created by 10.3.9.

            ktchow_ogcio Chow King Tak added a comment - - edited I mean I start MariaDB server 10.4.7 on the database created by 10.3.9.

            Sorry for the delay.
            I think you've encountered the problem filed as MDEV-19918.
            To verify that, try to start your server (when it usually hangs) without server_audit plugin – for example, add skip-server-audit to your config file after the line plugin_load_add = server_audit.

            elenst Elena Stepanova added a comment - Sorry for the delay. I think you've encountered the problem filed as MDEV-19918 . To verify that, try to start your server (when it usually hangs) without server_audit plugin – for example, add skip-server-audit to your config file after the line plugin_load_add = server_audit .

            People

              Unassigned Unassigned
              ktchow_ogcio Chow King Tak
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start 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.