Forum Moderators: open
I have this 100MB MySQL dump file. I am trying to import this dump into a database of a different name.
However, the dump file tries to create a database. I want to override the create database and import it to a different database of a different name.
Is it possible to use a different database name during import?
It is not easy to edit this file through SSH. Plus the dump contains UTF-8 characters so editing seems impossible.
The MySQL dump contains these lines:
CREATE DATABASE /*!32312 IF NOT EXISTS*/ `database_name` /*!40100 DEFAULT CHARACTER SET latin1 */;
USE `database_name`;
Can I override this somehow through the command line import tool?
TIA
Or you could import the file into your own development version/installation of MySQL and then dump it back out in the format you desire in order to move it on over and up to your new server.
Just some thoughts.