sjmudd / ps-top

ps-top - a top-like program for MySQL
BSD 2-Clause "Simplified" License
205 stars 31 forks source link

Reading defaults file doesn't cover quoted passwords #11

Closed techwolf359 closed 3 years ago

techwolf359 commented 6 years ago

In a ~/.my.cnf file, you can enclose passwords with special characters within quotes, as

password="%@%GT@@gf54%@"

(no this is not my password)

The parser doesn't interpret single or double quotes correctly with password. That is, it tries to send the quotes as part of the password.

Reproduce by enclosing password with single or double quote and get an error connecting. Remove quotes and it works.

sjmudd commented 3 years ago

This issue has been resolved recently. Please try v1.0.0 or later and see if resolves your issue.