Are database administrator passwords vulnerable to security when changing them from the command line?

Asked 2 years ago, Updated 2 years ago, 78 views

I have a question during the initial setup of MariaDivi.

http://coffeenix.net/doc/mysql/securing_mysql.html

In the above article

It is important to make a habit of changing passwords in the command line, such as "mysqladmin password". This is because passwords can be easily exposed when other users use the "psaux" command or look at the history file (~/.history, ~/.bash_historyetc) when working on the server.

That's what it says. Doesn't the mysqladmin utility eventually leave a log because it's input from the command line?

database

2022-09-22 20:40

1 Answers

It's self-answer

The part about mysql log is in the mysql config file

It can be controlled by setting export MYSQL_HISTFILE=/dev/null.

We need to check more about Shell HistoryYo

It's a reference~

http://www.thegeekstuff.com/2010/01/disable-mysql-history-clear-mysql_history-and-mysql_histfile/


2022-09-22 20:40

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.