6 ms·
I would solve this by not asking for the password and just putting a password placeholder in the generated command.
by ChristianGeek 3y ago
I would solve this by not asking for the password and just putting a password placeholder in the generated command.
- jotaen 3y agoThat could also be an option, although an additional manual step might be slightly less convenient, especially in case you want to “debug” the command (i.e., regenerate multiple times with varying parameters). Another potential benefit of entering the PW in the field is that the generator could take care of proper escaping – think, if the password contains spaces, quotes, asterisks, $ signs, or other bash shenanigans. (That, by the way, doesn’t seem to work right now, @OP.) Another idea could be to allow entering an env variable name instead of a value.
- phil21 3y agoIf you are on a dev machine iterating quickly, just set the basic credentials up in ~/.mylogin.cnf[0] and you don't need to worry about supplying those options on the command line at all. [0]: https://dev.mysql.com/doc/refman/8.0/en/mysql-config-editor.html https://dev.mysql.com/doc/refman/8.0/en/mysql-config-editor....