当前位置:网站首页>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
注意:要恢复指定指定数据库,实际上是恢复该数据库下所有的表。因此,该数据库必须存在
边栏推荐
- Set up a website with a sense of ceremony, and post it to 1/2 of the public network through the intranet
- C语言快速解决反转链表
- Record: how to scroll screenshots of web pages on Microsoft edge in win10 system?
- Tweenmax emoticon button JS special effect
- 剑指Offer 68 - II. 二叉树的最近公共祖先
- Redis getting started complete tutorial: Geo
- One of the commonly used technical indicators, reading boll Bollinger line indicators
- colResizable. JS auto adjust table width plug-in
- Redis introduction complete tutorial: Collection details
- Wechat official account solves the cache problem of entering from the customized menu
猜你喜欢
随机推荐
[ODX studio edit PDX] - 0.2-how to compare two pdx/odx files of compare
OSEK标准ISO_17356汇总介绍
Excel 快捷键-随时补充
SHP data making 3dfiles white film
Photoshop batch adds different numbers to different pictures
Set up a website with a sense of ceremony, and post it to 1/2 of the public network through the intranet
实战模拟│JWT 登录认证
剑指Offer 68 - II. 二叉树的最近公共祖先
Photoshop批量给不同的图片添加不同的编号
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
Redis introduction complete tutorial: slow query analysis
A complete tutorial for getting started with redis: redis usage scenarios
colResizable. JS auto adjust table width plug-in
Redis入门完整教程:有序集合详解
[OpenGL] note 29 anti aliasing (MSAA)
9 - class
Redis入门完整教程:Redis使用场景
A complete tutorial for getting started with redis: understanding and using APIs
【taichi】用最少的修改将太极的pbf2d(基于位置的流体模拟)改为pbf3d
Attack and defense world misc master advanced zone 001 normal_ png








