当前位置:网站首页>Mysql database backup and recovery -- mysqldump command
Mysql database backup and recovery -- mysqldump command
2022-07-04 23:14:00 【Zuo Mingshui】
1. Backup and recovery of database
1) Back up the specified database
mysqldump -u root -p test > ./test.dump
2) Back up all libraries
mysqldump -u root -p --all-databases > ./all.dump
3) Restore all libraries
mysql -u root -p < ./all.dump
4) Restore the specified database
mysql -u root -p test <./test.dump
Be careful : To restore the specified database , In fact, it is to restore all tables under the database . therefore , The database must exist
边栏推荐
- [Jianzhi offer] 6-10 questions
- The difference between Max and greatest in SQL
- Summary of wechat applet display style knowledge points
- [ODX studio edit PDX] - 0.2-how to compare two pdx/odx files of compare
- LIst 相关待整理的知识点
- 初试为锐捷交换机跨设备型号升级版本(以RG-S2952G-E为例)
- The difference between cout/cerr/clog
- Redis入门完整教程:哈希说明
- vim编辑器知识总结
- S32 Design Studio for ARM 2.2 快速入门
猜你喜欢
ETCD数据库源码分析——处理Entry记录简要流程
Complete tutorial for getting started with redis: bitmaps
Excel 快捷键-随时补充
Actual combat simulation │ JWT login authentication
One of the commonly used technical indicators, reading boll Bollinger line indicators
Redis:Redis的事务
A complete tutorial for getting started with redis: Pipeline
Redis入门完整教程:Bitmaps
PS style JS webpage graffiti board plug-in
【二叉树】节点与其祖先之间的最大差值
随机推荐
Async await used in map
UML diagram memory skills
云服务器设置ssh密钥登录
Redis getting started complete tutorial: publish and subscribe
【二叉树】节点与其祖先之间的最大差值
How can enterprises cross the digital divide? In cloud native 2.0
Set up a website with a sense of ceremony, and post it to 1/2 of the public network through the intranet
colResizable. JS auto adjust table width plug-in
PICT 生成正交测试用例教程
【js】-【排序-相关】-笔记
Complete tutorial for getting started with redis: bitmaps
SHP data making 3dfiles white film
D3.js+Three. JS data visualization 3D Earth JS special effect
可观测|时序数据降采样在Prometheus实践复盘
Redis introduction complete tutorial: client communication protocol
Redis getting started complete tutorial: Key Management
HMS core unified scanning service
【图论】拓扑排序
A complete tutorial for getting started with redis: Pipeline
Redis入门完整教程:GEO