[MDEV-18688] mytop does not honor settings from ~/.mytop if there is ~/.my.cnf Created: 2019-02-21 Updated: 2023-04-27 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | Scripts & Clients |
| Affects Version/s: | 10.2.22, 10.3.12 |
| Fix Version/s: | 10.4 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Miroslav Lachman | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | regression | ||
| Environment: |
FreeBSD 11.2-RELEASE-p7 amd64 GENERIC mariadb103-client-10.3.12 |
||
| Attachments: |
|
| Description |
|
FreeBSD packages didn't install mytop in versions before 10.3 and I was using mytop as a standalone package for the last 10+ years without any issues. Right after the upgrade from MariaDB 10.1 to 10.3 (and to bundled mytop) it doesn't work anymore. The problem is I have dedicated user account "mytop" specified in ~/.mytop and some other settings in ~/.my.cnf where password for another user account is stored too. MariaDB's version of mytop reads settings from ~/.my.cnf and uses them (different password) for mytop instead of settings from ~/.mytop so mytop cannot connect to database and settings cannot be overridden on commandline too. I found that MariaDB's version implemented reading of ~/.my.cnf few years ago but it does not work as it should. from manpage: I am not a Perl programmer but I tried to fix it and it works for me now (see attached patch). The later overrides value of earlier options. |