MySQL在Windows和Linux下還原資料庫

來源:互聯網
上載者:User

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

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.