当前位置:网站首页>MySQL command backup
MySQL command backup
2022-06-25 02:28:00 【Full stack programmer webmaster】
Hello everyone , I meet you again , I'm your friend, Quan Jun .
1、mysql Command backup (1) Backup test Data and structure mysqldump –opt -h127.0.0.1 -uroot -p111111 –lock-all-tables=true –result-file=”D:\test\test.sql” –default-character-set=utf8 “test” (2) Backup test data 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) Backup test structure 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) Backup test trigger 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、 Full backup bat file Take full backup data and structure as an example : bat The documents are as follows :
@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”
For scheduled full backup , have access to windows The scheduled task of is executed regularly bat file .
Publisher : Full stack programmer stack length , Reprint please indicate the source :https://javaforall.cn/151762.html Link to the original text :https://javaforall.cn
边栏推荐
- centos7.3修改mysql默认密码_详解Centos7 修改mysql指定用户的密码
- 【FPGA】串口以命令控制温度采集
- E - Average and Median(二分)
- 如何通过EasyCVR接口监测日志观察平台拉流情况?
- Convert string array to list collection
- Multimodal emotion recognition_ Research on emotion recognition based on multimodal fusion
- 常用的软件测试工具清单,请查收。
- 转行软件测试2年了,给还在犹豫的女生一点建议
- Migrate Oracle database from windows system to Linux Oracle RAC cluster environment (3) -- set the database to archive mode
- What are the reasons for the abnormal playback of the online channel of the channel accessed by easycvr national standard protocol?
猜你喜欢

Application of TSDB in civil aircraft industry

测试/开发程序员,30而立,你是否觉得迷茫?又当何去何从......

【直播回顾】战码先锋第七期:三方应用开发者如何为开源做贡献

Intranet learning notes (5)

After reciting the eight part essay, I won the hemp in June

入坑机器学习:一,绪论

AI服装生成,帮你完成服装设计的最后一步

内网学习笔记(7)

分布式事务解决方案和代码落地

How to monitor the log through the easycvr interface to observe the platform streaming?
随机推荐
【STL源码剖析】配置器(待补充)
Talking about the advantages of flying book in development work | community essay solicitation
MOS tube related knowledge
LINQ query (3)
EasyCVR平台EHOME协议接入,视频播放出现断流是什么原因?
E - Average and Median(二分)
ida中交叉引用的解析
把 Oracle 数据库从 Windows 系统迁移到 Linux Oracle Rac 集群环境(1)——迁移数据到节点1
Cusdis - lightweight, privacy first open source comment system | chain of the city
[mobile terminal] design size of mobile phone interface
EasyCVR国标协议接入的通道,在线通道部分播放异常是什么原因?
目录权限错误导致 Oracle 11g rac 集群数据库无法启动的问题
[analysis of STL source code] functions and applications of six STL components (directory)
It is said that Yijia will soon update the product line of TWS earplugs, smart watches and bracelets
File system - basic knowledge of disk and detailed introduction to FAT32 file system
AI服装生成,帮你完成服装设计的最后一步
探索C语言程序奥秘——C语言程序编译与预处理
PE文件基础结构梳理
It's 2022, and you still don't know what performance testing is?
同花顺是正规平台吗?同花顺开户安全吗