当前位置:网站首页>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
边栏推荐
- Excel 快捷键-随时补充
- The initial arrangement of particles in SPH (solved by two pictures)
- Redis入門完整教程:Pipeline
- 【爬虫】数据提取之JSONpath
- ECS settings SSH key login
- [crawler] XPath for data extraction
- Redis introduction complete tutorial: detailed explanation of ordered collection
- Redis入门完整教程:HyperLogLog
- The difference between Max and greatest in SQL
- [Jianzhi offer] 6-10 questions
猜你喜欢
法国学者:最优传输理论下对抗攻击可解释性探讨
【剑指offer】1-5题
Redis入门完整教程:事务与Lua
Tweenmax emoticon button JS special effect
The difference between cout/cerr/clog
Redis introduction complete tutorial: List explanation
Redis入門完整教程:Pipeline
phpcms付费阅读功能支付宝支付
D3.js+Three. JS data visualization 3D Earth JS special effect
QT drawing network topology diagram (connecting database, recursive function, infinite drawing, dragging nodes)
随机推荐
Google Earth engine (GEE) - tasks upgrade enables run all to download all images in task types with one click
Excel shortcut keys - always add
C语言快速解决反转链表
[Jianzhi offer] 6-10 questions
Qt个人学习总结
【二叉树】节点与其祖先之间的最大差值
【ODX Studio编辑PDX】-0.3-如何删除/修改Variant变体中继承的(Inherited)元素
ScriptableObject
Redis入门完整教程:哈希说明
Redis:Redis的事务
Redis getting started complete tutorial: hash description
SHP data making 3dfiles white film
MP进阶操作: 时间操作, sql,querywapper,lambdaQueryWapper(条件构造器)快速筛选 枚举类
CTF競賽題解之stm32逆向入門
How can enterprises cross the digital divide? In cloud native 2.0
Redis: redis transactions
Redis: redis message publishing and subscription (understand)
JS 3D explosive fragment image switching JS special effect
【剑指offer】1-5题
A complete tutorial for getting started with redis: hyperloglog