如何从.sql文件恢复mysql数据库

时间:2014-08-31 12:19:04

标签: mysql sql database restore dump

我正在使用这样的

mysql -u <user> -p<password> <database> < "C:\database.sql";

但结果是这样的。

warning: Using a password on the command line interface can be insecure.
mysql ver 14.14 distrib 5.6.20, for Win32 <x86>
copyright <c> 2000, 2014, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered tradmark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of the;r respective
owmers.

usage: mysql [OPTIONS] [database]
 -?, --help     Display this help and exit.
 -I, --help     Synonym for -?
 --auto-rehash      Enable automatic ...........<longtext>.

.....

但在键入“show tables;”

时,数据库和文件夹中没有表格

如何恢复数据库?

0 个答案:

没有答案