Hi,

just create a custom ~/.mytop file like follows (see perldoc mytop for
more information):

werner@debian:~$ cat ~/.mytop
user=youruser
pass=my#password
host=localhost

And your ~/.my.cnf remains:
[client]
password="my#password"

mytop and the mysql client are working this way.

Thanks,
Werner


Am 21/11/2016 um 17:39 schrieb Matthew Hawker:
> Package: mytop
> Version: 1.9.1-2
> Severity: normal
> 
> Dear Maintainer,
> 
> The mysql client allows values in .my.cnf to be quoted, while mytop 
> understands quotes around the values in the file as being part of the value.  
> As a result, there is no way to write .my.cnf in a way that'll allow hash 
> symbols (#) in passwords. 
> 
> For example, this works in mysql but fails in mytop:
> 
>     [client]
>     password="my#password"
> 
> However, this works in mytop but fails in mysql:
> 
>     [client]
>     password=my#password
> 
> Thanks and best regards,
> 
> Matt
> 
> -- System Information:
> Debian Release: 8.6
>   APT prefers stable
>   APT policy: (500, 'stable'), (500, 'oldstable')
> Architecture: amd64 (x86_64)
> 
> Kernel: Linux 2.6.32-45-pve (SMP w/4 CPU cores)
> Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
> Shell: /bin/sh linked to /bin/dash
> Init: sysvinit (via /sbin/init)
> 
> Versions of packages mytop depends on:
> ii  libconfig-inifiles-perl  2.83-3
> ii  libdbd-mysql-perl        4.028-2+deb8u2
> ii  libdbi-perl              1.631-3+b1
> ii  libterm-readkey-perl     2.32-1+b1
> ii  perl                     5.20.2-3+deb8u6
> 
> Versions of packages mytop recommends:
> ii  perl [libtime-hires-perl]  5.20.2-3+deb8u6
> 
> mytop suggests no packages.
> 
> -- no debconf information
> 

Reply via email to