MySQL 5.6 Warning Message Command line interface can insecure
When you enter a password at the command line, these security warning messages are prompted.
Warning:using a password on the command line interface can is insecure.
Note: mysql-u Root-ppassword or mysqldump-u Root-ppassword will output such warning messages.
1. For MySQL
Mysql-u Root-ppassword Change to mysql-u root-p enter the password.
2, Mysqldump is more troublesome, usually written in the scripts script.
Workaround:
For mysqldump how to avoid the occurrence (warning:using a password on the command line interface can be insecure.) warning message?
Vim/etc/mysql/my.cnf
[Mysqldump]
User=your_backup_user_name
Password=your_backup_password
After modifying the configuration file, you only need to execute the mysqldump script. There is no need to include information about user name passwords in backup scripts.
MySQL5.6 warning message command line interface can is insecur