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

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

    Details

    • Sprint:

      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:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 hour
                  1h