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

mysql_upgrade crashes if root's password contains an apostrophe/single quotation mark

    Details

      Description

      Expected behaviour: mysql_upgrade completes successfully when using a password containing a single quotation mark (').

      Actual behaviour mysql_upgrade crashes with the following:

      root:~ # mysql_upgrade -p
      Enter password: 
      sh: -c: line 0: unexpected EOF while looking for matching `''
      sh: -c: line 1: syntax error: unexpected end of file
      Phase 1/3: Fixing table and database names
      sh: -c: line 0: unexpected EOF while looking for matching `''
      sh: -c: line 1: syntax error: unexpected end of file
      FATAL ERROR: Upgrade failed

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                serg Sergei Golubchik
                Reporter:
                n3hima Joe MacMahon
              • Votes:
                2 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: