If the database you want to restore doesn't already exist, you need to create it first.
(如果要还原的数据库尚不存在,则需要首先创建它。)
On the command-line, if you're in the same directory that contains the dumped file, use these commands (with appropriate substitutions):
(在命令行上,如果您位于包含转储文件的目录中,请使用以下命令(带有适当的替换):)
C:> mysql -u root -p
mysql> create database mydb;
mysql> use mydb;
mysql> source db_backup.dump;
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…