Mysql MSQL还原错误
我正在尝试使用 mysql-u root-p databasenameMysql MSQL还原错误,mysql,Mysql,我正在尝试使用 mysql-u root-p databasename
mysqldump-u root-p databasename>dumpfile.bak创建的
以下是转储文件的前几行:
mysql Ver 14.14 Distrib 5.7.9, for Win64 (x86_64)
Copyright (c) 2000, 2015, 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.
Usage: mysql [OPTIONS] [database]
-?, --help Display this help and exit.
-I, --help Synonym for -?
--auto-rehash Enable automatic rehashing. One doesn't need to use
'rehash' to get table and field completion, but startup
and reconnecting may take a longer time. Disable with
--disable-auto-rehash.
(Defaults to on; use --skip-auto-rehash to disable.)
有人能帮忙吗?当progman谈到dbfile时,我发现了这个问题,在我发布它之后,我又看了一眼,发现它不是该文件的正确版本。我认为错误在查询中,而不是文件中。谢谢你的帮助 请将您的问题包含在
dumpfile.bak
文件的第一行中。还要详细解释您是如何创建dumpfile.bak
文件的。如果文件不大,请将其加载到workbench中。这应该会向您显示错误。由于某种原因,您已将mysql
命令的帮助页添加到dumpfile.bak
文件中。请重新创建MySQL转储并验证它是否包含实际的SQL语句。