当前位置:网站首页>mysql命令备份
mysql命令备份
2022-06-24 22:47:00 【全栈程序员站长】
大家好,又见面了,我是你们的朋友全栈君。
1、mysql命令备份 (1)备份test数据和结构 mysqldump –opt -h127.0.0.1 -uroot -p111111 –lock-all-tables=true –result-file=”D:\test\test.sql” –default-character-set=utf8 “test” (2)备份test数据 mysqldump -t -h127.0.0.1 -uroot -p111111 –lock-all-tables=true –result-file=”D:\test\test_data.sql” –default-character-set=utf8 “test” (3)备份test结构 mysqldump -d -h127.0.0.1 -uroot -p111111 –lock-all-tables=true –result-file=”D:\test\test_structs.sql” –default-character-set=utf8 “test” (4)备份test触发器 mysqldump –opt -t -d -h127.0.0.1 -uroot -p111111 –lock-all-tables=true –result-file=”D:\test\test_triger.sql” –default-character-set=utf8 “test”
2、全备份bat文件 以全备份数据和结构为例: bat文件如下:
@echo off cd C:\Program Files\MySQL\MySQL Server 5.6\bin mysqldump –opt -h127.0.0.1 -uroot -p111111 –lock-all-tables=true –result-file=”D:\test\%date:~0,4%.sql” –default-character-set=utf8 “test”
如需定时全备份,可以使用windows的定时任务定时执行bat文件。
发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/151762.html原文链接:https://javaforall.cn
边栏推荐
- Viewing MySQL password on Linux_ MySQL forgets password "suggestions collection" under Linux
- 做软件安全测试的作用,如何寻找软件安全测试公司出具报告?
- 当人们用互联网式的思维和视角来看待产业互联网的时候,其实已陷入到了死胡同
- I've been doing software testing for two years. I'd like to give some advice to girls who are still hesitating
- [live review] battle code pioneer phase 7: how third-party application developers contribute to open source
- Left hand dreams right hand responsibilities GAC Honda not only pays attention to sales but also children's safety
- 算力服务网络:一场多元融合的系统革命
- Test / development programmers, 30, do you feel confused? And where to go
- 股票开账户如何优惠开户?手机开户是安全么?
- EasyCVR国标协议接入的通道,在线通道部分播放异常是什么原因?
猜你喜欢

【FPGA】串口以命令控制温度采集

罗德与施瓦茨与中关村泛联院合作开展6G技术研究与早期验证

Left hand dreams right hand responsibilities GAC Honda not only pays attention to sales but also children's safety

内网学习笔记(7)

3年测试经验,连简历上真正需要什么都没搞明白,张口就要20k?

当他们在私域里,掌握了分寸感

华为、阿里等大厂程序员真的好找对象吗?
![[live review] battle code pioneer phase 7: how third-party application developers contribute to open source](/img/ad/26a302ca724177e37fe123f8b75e4e.png)
[live review] battle code pioneer phase 7: how third-party application developers contribute to open source
![Full arrangement ii[duplicate removal of the same elements + standard backtracking]](/img/d3/93ddb49e580be60be4f056f141b782.png)
Full arrangement ii[duplicate removal of the same elements + standard backtracking]

Of the seven levels of software testers, it is said that only 1% can achieve level 7
随机推荐
Which account is safer and better for access letter
LINQ query (3)
Application of TSDB in civil aircraft industry
MPLS notes Part 1
Is it out of reach to enter Ali as a tester? Here may be the answer you want
疫情防控,居家办公,网上授课之心得 | 社区征文
|How to analyze bugs? Professional summary and analysis
【第26天】给定 n 个元素的升序数组nums,求实现一个函数在nums中寻找target的下标 | 初识二分查找
Use of hashcat
2022-06-24:golang选择题,以下golang代码输出什么?A:1;B:3;C:4;D:编译失败。 package main import ( “f
Multimodal emotion recognition_ Research on emotion recognition based on multimodal fusion
MOS tube related knowledge
Can automate - 10k, can automate - 20K, do you understand automated testing?
保险APP适老化服务评测分析2022第06期
入坑机器学习:一,绪论
Talking about the advantages of flying book in development work | community essay solicitation
Basic layout -qhboxlayout class, qvboxlayout class, qgridlayout class
内网学习笔记(6)
Of the seven levels of software testers, it is said that only 1% can achieve level 7
Cake review fatigue in the secondary market of innovative drugs: phase III clinical success and product approval