当前位置:网站首页>MySQL数据库备份与恢复--mysqldump命令
MySQL数据库备份与恢复--mysqldump命令
2022-07-04 22:44:00 【左明水】
1.数据库的备份与恢复
1)备份指定数据库
mysqldump -u root -p test > ./test.dump
2)备份所有库
mysqldump -u root -p --all-databases > ./all.dump
3)恢复所有库
mysql -u root -p < ./all.dump
4)恢复指定数据库
mysql -u root -p test <./test.dump
注意:要恢复指定指定数据库,实际上是恢复该数据库下所有的表。因此,该数据库必须存在
边栏推荐
- Advanced area of attack and defense world misc 3-11
- debug和release的区别
- [OpenGL] note 29 anti aliasing (MSAA)
- 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
- 金融市场,资产管理与投资基金
- 【图论】拓扑排序
- UML图记忆技巧
- EditPlus--用法--快捷键/配置/背景色/字体大小
- Pagoda 7.9.2 pagoda control panel bypasses mobile phone binding authentication bypasses official authentication
- Redis入门完整教程:GEO
猜你喜欢
![[Jianzhi offer] 6-10 questions](/img/73/5974068008bcdc9a70b3f5f57f1eb0.png)
[Jianzhi offer] 6-10 questions

A complete tutorial for getting started with redis: Pipeline

OSEK标准ISO_17356汇总介绍

Redis introduction complete tutorial: slow query analysis

SPH中的粒子初始排列问题(两张图解决)
![[roommate learned to use Bi report data processing in the time of King glory in one game]](/img/06/22dde3fcc0456bd230e1d0cde339ec.png)
[roommate learned to use Bi report data processing in the time of King glory in one game]

Complete tutorial for getting started with redis: bitmaps

The new version judges the code of PC and mobile terminal, the mobile terminal jumps to the mobile terminal, and the PC jumps to the latest valid code of PC terminal

Attack and defense world misc advanced area can_ has_ stdio?

Redis introduction complete tutorial: client communication protocol
随机推荐
How to send a reliable request before closing the page
Common methods in string class
Redis入門完整教程:Pipeline
A complete tutorial for getting started with redis: Pipeline
Redis入门完整教程:列表讲解
[Lua] Int64 support
【图论】拓扑排序
Sword finger offer 67 Convert a string to an integer
Serial port data frame
Is Huatai Securities a nationally recognized securities firm? Is it safe to open an account?
Sobel filter
Redis:Redis的事务
常用技术指标之一文读懂BOLL布林线指标
Attack and defense world misc advanced area ditf
Principle of lazy loading of pictures
Attack and defense world misc advanced area can_ has_ stdio?
A complete tutorial for getting started with redis: understanding and using APIs
图片懒加载的原理
[odx Studio Edit pdx] - 0.2 - Comment comparer deux fichiers pdx / odx
[sword finger offer] questions 1-5