[MDEV-27789] mysql_upgrade / mariadb-upgrade in 10.6.6 is putting password in host argument Created: 2022-02-09 Updated: 2022-06-27 Resolved: 2022-02-10 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Scripts & Clients |
| Affects Version/s: | 10.2.42, 10.3.33, 10.4.23, 10.5.14, 10.6.6, 10.7.2 |
| Fix Version/s: | 10.5.14, 10.2.43, 10.3.34, 10.4.24, 10.5.15, 10.6.7, 10.7.3 |
| Type: | Bug | Priority: | Blocker |
| Reporter: | Jonathan Ocab | Assignee: | Michael Widenius |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | regression | ||
| Environment: |
CentOS Linux release 7.9.2009 (Core) |
||
| Issue Links: |
|
||||||||||||||||
| Description |
|
I upgraded from 10.6.5 (?) to 10.6.6 via package manager and whenever I run the mysql_upgrade command, it appears the password is being put into the host argument/field.
|
| Comments |
| Comment by Daniel Black [ 2022-02-09 ] | |||||||||||||
|
Basic form of a fix:
| |||||||||||||
| Comment by Michael Widenius [ 2022-02-10 ] | |||||||||||||
|
The above suggested patch shows where the problem is, but still has the original problem that the code is very fragile if anyone adds more command line arguments. I have now created a patch that removes the above defined and also the USER_OPT defined which has the same problem | |||||||||||||
| Comment by Michael Widenius [ 2022-02-10 ] | |||||||||||||
|
Fixed by removing the dependency of options positions in my_long_options | |||||||||||||
| Comment by Peter Debik [ 2022-02-13 ] | |||||||||||||
|
Now as we are already on 10.3.33 and 10.5.14 and the issue affects the upgrade process, can we safely upgrade to 10.3.34 / 10.5.15 from the two revoked, faulty versions? | |||||||||||||
| Comment by Elena Stepanova [ 2022-02-13 ] | |||||||||||||
|
bitpalast, |