MySQLは引数で与えられたパスワードをマスクする
MySQLのプロセスをみてもパスワードはわからない
mysql -uroot -px xxxxxxxxxxxxxxxx のように、マスクされている
しくみ
MySQLが内部でやっているらしい
It is probably the other way and mysql does the magic, not ps: “MySQL clients typically overwrite the command-line password argument with zeros during their initialization sequence.” – End-User Guidelines for Password Security
security - How does ps know to hide passwords? - Unix & Linux Stack Exchange
#MySQL #security #Linux