MySQL5.6 warning message command line interface can is insecur

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.