Warning:using a password on the command line interface can is insecure.

Source: Internet
Author: User

Do a full backup do not use the name of the text, at the command line

[Root@t2 ~]# mysqldump-uroot-pjsb--lock-all-tables--master-data=2--events--routines--all-databases >/tmp/datab Ase_ ' Date +%f '. SQL warning:using a password on the command line interface can is insecure.



[Root@t2 ~]# mysqldump-uroot-p--lock-all-tables--master-data=2--events--routines--all-databases >/tmp/database _ ' Date +%f '. SQL Enter Password:

[Root@t2 ~]# ls/tmp/

Analytical:

–lock-all-tables represents the reading lock for all tables;

–master-data=2 indicates the location of the current binary log in the backup file;

–events represents the backup time scheduler code while backing up the data;

–routines represents backing up stored procedures and stored functions while backing up the data;

–all-databases indicates that all libraries are backed up.

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.