设为首页 加入收藏

TOP

MySQL在Windows和Linux下还原数据库
2014-11-24 08:19:35 来源: 作者: 【 】 浏览:2
Tags:MySQL Windows Linux 还原 数据库

Linux下还原数据库代码:

1,创建一个空的数据库cddl
mysql> create database cddl;
Query OK, 1 row affected (0.00 sec)

2,还原数据库
[root@chicago mysqlsoftware]# cd /etc/rc.d/init.d
[root@chicago mysqlsoftware]# cd /etc/rc.d/init.d
[root@chicago init.d]# mysql -h 192.168.92.100 -uroot -ppassword cddl< /mysqlsoftware/cddl20140703.sql
Warning: Using a password on the command line interface can be insecure.

Windows下还原数据库代码:

\
1,创建一个空的数据库mydb
2,run-->cmd->cd C:\Program Files\MySQL\MySQL Server 5.5\bin
3,mysql -h 192.168.92.100 -uroot -ppassword mydb< d:\cddl20140703.sql

】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇MysqlUser-DefinedVariables用户.. 下一篇执行计划中Using filesort,Using ..

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容:

·Redis on AWS:Elast (2025-12-27 04:19:30)
·在 Spring Boot 项目 (2025-12-27 04:19:27)
·使用华为开发者空间 (2025-12-27 04:19:24)
·Getting Started wit (2025-12-27 03:49:24)
·Ubuntu 上最好用的中 (2025-12-27 03:49:20)