mysqldump hint warning:using a password on the command line interface can be insecure.

Source: Internet
Author: User

Scene:

Host A and Host B in the LAN, has been on the host a with a scheduled task in the run mysqldump to back up the database on Host B, the first two days suddenly appear: warning:using a password on the command line interface can be Insecure.


The code for the previous scheduled task is:

Mysqldump-h10.255.xxx.xxx-uroot-pxxxx dbxxx | gzip >/root/db/backup/dbname_$ (Date +\%y\%m\%d-\%h). sql.gz

Then it executes directly on host A, prompting warning:using a password on the command line interface can is insecure. And the backup is unsuccessful.


Then change the code to:

Mysqldump-uroot-pxxxx-h 10.255.xxx.xxx dbxxx | gzip >/root/db/backup/dbname_$ (Date +\%y\%m\%d-\%h). sql.gz (just put the parameter of-H on the back)

Again, you will still be prompted warning:using a password on the command line interface can be insecure. But can be backed up successfully.



mysqldump hint warning:using a password on the command line interface can be insecure.

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.