Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我使用mysql-client 5.55.9999,我想知道如何防止 mysql-client 将密码保存到~/.mysql_history?假设我创建了一个新用户:
mysql-client 5.55.9999
~/.mysql_history
CREATE USER "username"@"host" IDENTIFIED BY "thePassword";
该声明正按原样放入~/.mysql_history. 这是我不想要的。我记得在早期版本的 mysql-client 中,包括密码的行没有被放入历史文件中,但我不记得设置中的确切选项是什么。