当前位置:网站首页>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
边栏推荐
- qt绘制网络拓补图(连接数据库,递归函数,无限绘制,可拖动节点)
- 时间 (计算)总工具类 例子: 今年开始时间和今年结束时间等
- 【剑指offer】1-5题
- Redis introduction complete tutorial: detailed explanation of ordered collection
- Talk about Middleware
- LIst 相关待整理的知识点
- Redis入门完整教程:慢查询分析
- mamp下缺少pcntl扩展的解决办法,Fatal error: Call to undefined function pcntl_signal()
- Basic knowledge of database
- CTF competition problem solution STM32 reverse introduction
猜你喜欢
Redis入门完整教程:键管理
EditPlus--用法--快捷键/配置/背景色/字体大小
heatmap. JS picture hotspot heat map plug-in
Stm32 Reverse Introduction to CTF Competition Interpretation
Redis入门完整教程:Bitmaps
S32 Design Studio for ARM 2.2 快速入门
Redis入门完整教程:Redis Shell
字体设计符号组合多功能微信小程序源码
法国学者:最优传输理论下对抗攻击可解释性探讨
Google Earth engine (GEE) - globfire daily fire data set based on mcd64a1
随机推荐
How to choose a securities company? Is it safe to open an account on your mobile phone
Redis入门完整教程:客户端通信协议
Redis introduction complete tutorial: slow query analysis
Docker镜像的缓存特性和Dockerfile
heatmap. JS picture hotspot heat map plug-in
SHP data making 3dfiles white film
时间 (计算)总工具类 例子: 今年开始时间和今年结束时间等
Analysis of the self increasing and self decreasing of C language function parameters
可观测|时序数据降采样在Prometheus实践复盘
The difference between debug and release
Redis入门完整教程:Bitmaps
Google Earth engine (GEE) -- take modis/006/mcd19a2 as an example to batch download the daily mean, maximum, minimum, standard deviation, statistical analysis of variance and CSV download of daily AOD
The solution to the lack of pcntl extension under MAMP, fatal error: call to undefined function pcntl_ signal()
OSEK标准ISO_17356汇总介绍
Redis: redis configuration file related configuration and redis persistence
常用技术指标之一文读懂BOLL布林线指标
Redis introduction complete tutorial: Collection details
Redis入门完整教程:发布订阅
Complete tutorial for getting started with redis: bitmaps
Sword finger offer 68 - I. nearest common ancestor of binary search tree