0

I've exported database by using following command.

mysqldump -u root myDB -R > E:\Java\AkshayProject\Dump\DBbackup.sql

I want to import this database to another machine. I tried,

mysqldump -u root myDB -R < E:\Java\AkshayProject\Dump\DBbackup.sql

but it is saying that myDB does not exists. I want to dynamically create database named myDB if not exists and then import it. How can I achieve this?

0 Answers0