We're updating the issue view to help you get more done. 

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

Description

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

Actual behaviour mysql_upgrade crashes with the following:

1 2 3 4 5 6 7 8 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

Environment

Using Arch Linux x86_64

Status

Assignee

Sergei Golubchik

Reporter

Joe MacMahon

External issue ID

None

External issue ID

None

Components

Fix versions

Affects versions

10.0.3
5.3.12
5.2.14
5.1.67
5.5.31

Priority

Minor