开发者社区> 白及88> 正文

Warning: Using a password on the command line interface can be insecure.

简介: <p><span style="color:#3366ff">做全备份不要使用名文,在命令行</span></p> <p>[root@t2 ~]# mysqldump -uroot -pjsb --lock-all-tables --master-data=2 --events --routines --all-databases &gt; /tmp/database_`date +%F
+关注继续查看

做全备份不要使用名文,在命令行

[root@t2 ~]# mysqldump -uroot -pjsb --lock-all-tables --master-data=2 --events --routines --all-databases > /tmp/database_`date +%F`.sql

Warning: Using a password on the command line interface can be 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/

解析:

–lock-all-tables表示为所有表施加读锁;

–master-data=2表示在备份文件中记录当前二进制日志的位置;

–events表示备份数据的同时备份时间调度器代码;

–routines表示备份数据的同时备份存储过程和存储函数;

–all-databases表示备份所有库。

版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。

相关文章
mysqldump: [Warning] Using a password on the command line interface can be insecure.
mysqldump: [Warning] Using a password on the command line interface can be insecure.
135 0
autoreconf: command not found
autoreconf: command not found
77 0
g++: command not found
g++: command not found
19 0
【解决方案】A session ended very soon after starting. Check that the command in profile “XXX” is correct.
【解决方案】A session ended very soon after starting. Check that the command in profile “XXX” is correct.
327 0
运行 ‘ApiApplication‘ 出错: Command line is too long. Shorten command line for ShopApiApplication or
运行 ‘ApiApplication‘ 出错: Command line is too long. Shorten command line for ShopApiApplication or
97 0
Error running 'XXXApplication': Command line is too long. Shorten command line forXXX
Error running 'XXXApplication': Command line is too long. Shorten command line forXXX
62 0
Command line is too long. Shorten command line for AppWebStarter or...(已解决)
找到你项目中 .idea/workspace.xml文件 找到 < component name=“PropertiesComponent” > 在标签内部加上这句
101 0
Give root password for maintenance(or type control -D to continue)
2017-09-30 18:12:08 1:错误如图,本来开机准备用一下虚拟机,就出现一个这,为啥记录一下呢,因为网上好多不是很靠谱。 原因可能是之前关闭虚拟机的时候不小心出现异常了: 2:解决办法:   个人根据自己的磁盘分区情况,进行修复即可; 解决方法,在鼠标停留的地方输入...
1666 0
+关注
白及88
白及
文章
问答
视频
文章排行榜
最热
最新
相关电子书
更多
Borgaonkar-New-Adventures-In-Spying-3G-And-4G-Users-Locate-Track-And-Monitor
立即下载
低代码开发师(初级)实战教程
立即下载
阿里巴巴DevOps 最佳实践手册
立即下载