用mydump对所有数据库进行备份,还原具体案例
来源:互联网 发布:淘宝网店推广方案 编辑:程序博客网 时间:2024/04/30 13:16
现有的测试数据:
对所有数据库做备份:
C:\Users\Administrator>mysqldump -u root -p --all-databases> D:\mysql_bak\201409111654_all_database.bak
Enter password: *******
删除jiao和dan_test数据库里t表的数据:
导入文件进行恢复:
C:\Users\Administrator>mysql -u root -p < D:\mysql_bak\201409111654_all_database
.bak
Enter password: *******
C:\Users\Administrator>mysql -u root -p
Enter password: *******
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 55
Server version: 5.5.21 MySQL Community Server (GPL)
Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> use dan_test;
Database changed
mysql> select *
-> from t;
+------+
| id |
+------+
| 1 |
| 2 |
+------+
2 rows in set (0.00 sec)
mysql> use jiao;
Database changed
mysql> select *
-> from t;
+------+
| id |
+------+
| 1 |
+------+
1 row in set (0.00 sec)
mysql>
--若想了解怎么用mysqldump备份还原某个数据库具体案例,请参考:http://write.blog.csdn.net/postedit/39207889
- 用mydump对所有数据库进行备份,还原具体案例
- 用mysqldump备份还原某个数据库具体案例
- java对mysql数据库进行备份和还原
- c# 用SQLDMO 进行sql数据库备份及还原
- postgres 备份所有数据库并还原
- 用Ghost进行备份还原
- 使用SQLDMO进行数据库备份与还原
- SQL语句进行数据库备份还原
- 在页面进行数据库备份和还原
- 用SQLDMO备份还原数据库
- 用SqlPlus备份还原数据库
- mysql怎样利用对所有数据库进行备份的备份文件只恢复某一个数据库
- java对oracle数据进行备份和还原
- 如何用用GHOST对系统进行还原备份
- 使用GHOST对Windows操作系统进行备份和还原
- 使用GHOST对Windows操作系统进行备份和还原
- 用mysqldump对MySQL数据库进行数据备份与恢复
- 用触发器对SQL Server数据库进行数据备份
- weblogic9/10/11g 应用服务用户名密码自动认证
- Debian/Ubuntu的NFS配置
- Last-Modified,Etag,Expire区别
- 学习ViewGroup事件分发笔记(一)
- python数据持久存储:pickle模块的基本使用
- 用mydump对所有数据库进行备份,还原具体案例
- equals 和 ==
- 给Apk瘦身
- Python学习笔记(四)Python对象
- iphone崩溃日志分析工具symbolicatecrash用法
- opengl编程指南笔记
- 关于动态库之间stl调用的问题
- 使用Spring Profile和Mybatis进行多个数据源(H2和Mysql)的切换
- 給Mac添加wget功能