当前位置:网站首页>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: redis transactions
SPH中的粒子初始排列问题(两张图解决)
Redis introduction complete tutorial: Collection details
Redis:Redis消息的发布与订阅(了解)
[roommate learned to use Bi report data processing in the time of King glory in one game]
Redis入門完整教程:Pipeline
[graph theory] topological sorting
【机器学习】手写数字识别
Redis getting started complete tutorial: Geo
phpcms付费阅读功能支付宝支付
随机推荐
debug和release的区别
UML图记忆技巧
[machine learning] handwritten digit recognition
【二叉树】节点与其祖先之间的最大差值
CTF竞赛题解之stm32逆向入门
cout/cerr/clog的区别
Ffmpeg quick clip
Duplicate ADMAS part name
SPH中的粒子初始排列问题(两张图解决)
云服务器设置ssh密钥登录
VIM editor knowledge summary
ffmpeg快速剪辑
法国学者:最优传输理论下对抗攻击可解释性探讨
Redis入门完整教程:发布订阅
Redis入门完整教程:客户端通信协议
Redis入门完整教程:Redis使用场景
vim编辑器知识总结
[ODX studio edit PDX] - 0.2-how to compare two pdx/odx files of compare
Network namespace
Editplus-- usage -- shortcut key / configuration / background color / font size