Title: Problems importing a database
Last modified: August 22, 2016

---

# Problems importing a database

 *  [Javi Pastor](https://wordpress.org/support/users/jpastorre/)
 * (@jpastorre)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/problems-importing-a-database/)
 * I used the Duplicator plugin to migrate one client blog from one hosting to Hostgator
   and when I try to import the database from the old hosting to use it in the new
   one this error appears:
 * consulta SQL:
 * CREATE TABLE `wp_blog_versions` (
 *  `blog_id` BIGINT( 20 ) NOT NULL DEFAULT ‘0’,
    `db_version` VARCHAR( 20 ) NOT
   NULL DEFAULT ”, `last_updated` DATETIME NOT NULL DEFAULT ‘0000-00-00 00:00:00’,
   PRIMARY KEY ( `blog_id` ) , KEY `db_version` ( `db_version` ) ) ENGINE = MYISAM
   DEFAULT CHARSET = utf8;
 * MySQL ha dicho: Documentación
 * #1046 – No database selected
 * The website is [http://www.flamencapassion.com](http://www.flamencapassion.com)
   and it’s getting the database error because i can’t put this one.

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [catacaustic](https://wordpress.org/support/users/catacaustic/)
 * (@catacaustic)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/problems-importing-a-database/#post-5447929)
 * This is where the problem is:
 * > #1046 – No database selected
 * You’ll need to select a database before perofrming the input.
 *  [CMSHelpLive](https://wordpress.org/support/users/cmshelplivecom/)
 * (@cmshelplivecom)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/problems-importing-a-database/#post-5447968)
 * Hi,
 * Select database in which you want to import data.
    Or create database first and
   import you data in it.
 *  Thread Starter [Javi Pastor](https://wordpress.org/support/users/jpastorre/)
 * (@jpastorre)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/problems-importing-a-database/#post-5447971)
 * Thanks! I did id and now it works 🙂

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Problems importing a database’ is closed to new replies.

## Tags

 * [database](https://wordpress.org/support/topic-tag/database/)
 * [MySQL](https://wordpress.org/support/topic-tag/mysql/)

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 3 replies
 * 3 participants
 * Last reply from: [Javi Pastor](https://wordpress.org/support/users/jpastorre/)
 * Last activity: [11 years, 6 months ago](https://wordpress.org/support/topic/problems-importing-a-database/#post-5447971)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
