[root@qttc ~]# /usr/local/mysql/bin/mysqldump -uroot -proot db > bak.sql Warning: Using a password on the command line interface can be insecure.
MySQL users should use the following guidelines to keep passwords secure.
When you run a client program to connect to the MySQL server, it is inadvisable to specify your password in a way that exposes it to discovery by other users. The methods you can use to specify your password when you run client programs are listed here, along with an assessment of the risks of each method. In short, the safest methods are to have the client program prompt for the password or to specify the password in a properly protected option file.