When using the -p option, the password is visible in the command line using ps.
In contrast, mysql obscures the password so you get a line like this in ps:
mysqluser 31077 31054 0 May14 pts/0 00:00:00 mysql -u root -px xxxxxxx
When using the -p option, the password is visible in the command line using ps.
In contrast, mysql obscures the password so you get a line like this in ps:
mysqluser 31077 31054 0 May14 pts/0 00:00:00 mysql -u root -px xxxxxxx