码迷,mamicode.com
首页 > 数据库 > 详细

MySQL在Windows和Linux下还原数据库

时间:2014-07-04 08:58:17      阅读:301      评论:0      收藏:0      [点我收藏+]

标签:mysql

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下还原数据库代码:

bubuko.com,布布扣
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

MySQL在Windows和Linux下还原数据库,布布扣,bubuko.com

MySQL在Windows和Linux下还原数据库

标签:mysql

原文地址:http://blog.csdn.net/waterxcfg304/article/details/36664487

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!