当前位置:网站首页>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
边栏推荐
- Intranet learning notes (6)
- ida中交叉引用的解析
- DDD concept is complex and difficult to understand. How to design code implementation model in practice?
- Smartctl opens the device and encounters permission denied problem troubleshooting process record
- 02 common codes for Epicor secondary development
- F - Spices(线性基)
- AI服装生成,帮你完成服装设计的最后一步
- When an interface has an exception, how do you analyze the exception?
- Is it out of reach to enter Ali as a tester? Here may be the answer you want
- How to quickly familiarize yourself with the code when you join a new company?
猜你喜欢
记一次beego通过go get命令后找不到bee.exe的坑
QT package the EXE file to solve the problem that "the program input point \u zdapvj cannot be located in the dynamic link library qt5cored.dll"
【直播回顾】战码先锋第七期:三方应用开发者如何为开源做贡献
It's 2022, and you still don't know what performance testing is?
Redis
【FPGA】串口以命令控制温度采集
Lizuofan, co-founder of nonconvex: Taking quantification as his lifelong career
Experience of epidemic prevention and control, home office and online teaching | community essay solicitation
[live review] battle code pioneer phase 7: how third-party application developers contribute to open source
【Proteus仿真】Arduino UNO+数码管显示4x4键盘矩阵按键
随机推荐
[I.MX6UL] U-Boot移植(六) 网络驱动修改 LAN8720A
实战攻防演练中的四大特点
常用的软件测试工具清单,请查收。
Sumati gamefi ecological overview, element design in the magical world
Four characteristics of actual attack and defense drill
I've been doing software testing for two years. I'd like to give some advice to girls who are still hesitating
Viewing MySQL password on Linux_ MySQL forgets password "suggestions collection" under Linux
Application of TSDB in civil aircraft industry
Talking about the advantages of flying book in development work | community essay solicitation
F - spices (linear basis)
保险APP适老化服务评测分析2022第06期
[day 26] given the ascending array nums of n elements, find a function to find the subscript of target in nums | learn binary search
Of the seven levels of software testers, it is said that only 1% can achieve level 7
How to get the picture outside the chain - Netease photo album [easy to understand]
多模态情感识别_多模态融合的情感识别研究「建议收藏」
2022年云计算应用关键威胁调查
PE文件基础结构梳理
目录权限错误导致 Oracle 11g rac 集群数据库无法启动的问题
云原生数据库VS传统数据库
Left hand dreams right hand responsibilities GAC Honda not only pays attention to sales but also children's safety