当前位置:网站首页>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入门完整教程:API的理解和使用
时间 (计算)总工具类 例子: 今年开始时间和今年结束时间等
Redis: redis configuration file related configuration and redis persistence
Google Earth engine (GEE) - tasks upgrade enables run all to download all images in task types with one click
LabVIEW中比较两个VI
ScriptableObject
mamp下缺少pcntl扩展的解决办法,Fatal error: Call to undefined function pcntl_signal()
P2181 对角线和P1030 [NOIP2001 普及组] 求先序排列
Header file duplicate definition problem solving "c1014 error“
[crawler] XPath for data extraction
qt绘制网络拓补图(连接数据库,递归函数,无限绘制,可拖动节点)
高通WLAN框架学习(30)-- 支持双STA的组件
[graph theory] topological sorting
可观测|时序数据降采样在Prometheus实践复盘
Google collab trample pit
Principle of lazy loading of pictures
Notepad++--编辑的技巧
Duplicate ADMAS part name
Qt加法计算器(简单案例)
Redis入门完整教程:发布订阅


![[Jianzhi offer] 6-10 questions](/img/73/5974068008bcdc9a70b3f5f57f1eb0.png)






