Modify ↓
Ticket #7612 (closed defect: fixed)
Opened 3 years ago
Last modified 2 years ago
mythconverg_backup.pl bails on MySQL passwords with special characters
| Reported by: | comptona@… | Owned by: | mdean |
|---|---|---|---|
| Priority: | minor | Milestone: | unknown |
| Component: | Contributed Scripts & Apps | Version: | head |
| Severity: | medium | Keywords: | |
| Cc: | Ticket locked: | no |
Description
My MythTV database password includes a # (thanks goodpassword.com!), and the mythconverg_backup script fails:
mysqldump exited with status: 2 mysqldump output: mysqldump: Got error: 1045: Access denied for user 'mythtv'@'localhost' (using password: YES) when trying to connect
I found that surrounding the password in the defaults file with quotes fixes this issue. I've attached a patch for mythconverg_backup.pl; presumably a similar issue/fix exists with the restore script, but I haven't had the chance to test it. The bug exists in the current trunk version of this script (which I downloaded per http://www.mythbuntu.org/Upgrading).
Attachments
Change History
Changed 3 years ago by comptona@…
- Attachment mythconverg_backup.patch added
Note: See
TracTickets for help on using
tickets.

patch to fix mythconverg_backup.pl