当前位置:网站首页>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
边栏推荐
猜你喜欢

Redis入门完整教程:慢查询分析

Explanation of bitwise operators

常用技术指标之一文读懂BOLL布林线指标

初试为锐捷交换机跨设备型号升级版本(以RG-S2952G-E为例)

Redis introduction complete tutorial: Collection details

CTF competition problem solution STM32 reverse introduction

位运算符讲解

Redis introduction complete tutorial: client communication protocol

Redis入门完整教程:HyperLogLog

SPH中的粒子初始排列问题(两张图解决)
随机推荐
Redis: redis transactions
EditPlus--用法--快捷键/配置/背景色/字体大小
A complete tutorial for getting started with redis: transactions and Lua
【二叉树】节点与其祖先之间的最大差值
Advantages of Alibaba cloud international CDN
常用技术指标之一文读懂BOLL布林线指标
[crawler] XPath for data extraction
Redis入门完整教程:API的理解和使用
【爬虫】数据提取之xpath
Talk about Middleware
C语言快速解决反转链表
Redis入门完整教程:Redis Shell
A complete tutorial for getting started with redis: getting to know redis for the first time
Principle of lazy loading of pictures
A complete tutorial for getting started with redis: redis shell
The solution to the lack of pcntl extension under MAMP, fatal error: call to undefined function pcntl_ signal()
Tweenmax emoticon button JS special effect
位运算符讲解
Redis入門完整教程:Pipeline
Basic knowledge of database