Solution MySQL5.6 warning:using A password on the command line interface can be insecure

Source: Internet
Author: User

MySQL5.6 when using the password of the name of the login, will appear:warning:using a password on the command line interface can be insecure

Of course this will not matter to the normal landing, if used in the script, there will be problems;

The way to solve this problem is to configure it in MY.CNF;

Add the following configuration to the MY.CNF

[Mysqladump]user=my_namepassword=my_pass

Restart MySQL

You don't need to add any more parameters to use the Mysqldump command later.

Example: Mysqldump db > Mysql_bak.sql

The-U and-p parameters are omitted.

This article from the "Shallow faint" blog, please be sure to keep this source http://cuixiang.blog.51cto.com/8204722/1725818

Solution MySQL5.6 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.