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

mysqlcheck -A --auto-repair selects wrong database when trying to repair broken table

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Critical
    • Resolution: Fixed
    • 10.1.10, 5.5(EOL), 10.0(EOL), 10.1(EOL)
    • 5.5.51, 10.1.17, 10.0.27
    • Scripts & Clients
    • Debian 8
      $ mysqlcheck -V
      mysqlcheck Ver 2.7.4-MariaDB Distrib 10.1.10-MariaDB, for debian-linux-gnu (x86_64)

    Description

      Given 2 databases each with a table called "table":
      db1.tableA
      db2.tableB

      Break table db1.tableA and run `mysqlcheck -A --auto-repair --fast`. mysqlcheck will scan all tables and then should try to repair db1.tableA but instead it remains connected to the last database it checked (in this case db2) and tries to repair table db2.tableA - which does not exist.
      ===
      Repairing tables
      db2.tableA
      Error : Table 'db2.tableA' doesn't exist
      status : Operation failed
      ===

      Attachments

        Issue Links

          Activity

            People

              serg Sergei Golubchik
              atody Lucian Atody
              Votes:
              3 Vote for this issue
              Watchers:
              5 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.