Title: Import SQL Error [wp_commentsmeta]
Last modified: August 19, 2016

---

# Import SQL Error [wp_commentsmeta]

 *  Resolved [thewatts](https://wordpress.org/support/users/thewatts/)
 * (@thewatts)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/import-sql-error-wp_commentsmeta/)
 * Hello,
 * I’m trying to import my database from a dev server to my local install, and seem
   to be having issues.
 * I backed up my database according to the instructions on the WordPress Codex
   
   [http://codex.wordpress.org/Backing_Up_Your_Database](http://codex.wordpress.org/Backing_Up_Your_Database)
 * and went to import it, and got this SQL error:
    [http://skitch.com/nathanielwatts/nseb2/mamp](http://skitch.com/nathanielwatts/nseb2/mamp)
 * Error
    SQL query:
 * —
    — Database: `db76003_bobbywilson_dev` — — ——————————————————– — — Table structure
   for table `wp_commentmeta` — DROP TABLE IF EXISTS `wp_commentmeta` ;
 * MySQL said:
 * #1046 – No database selected
 * I’ve tried Googling this, with no avail.
 * Any suggestions?
    Thanks

Viewing 1 replies (of 1 total)

 *  Thread Starter [thewatts](https://wordpress.org/support/users/thewatts/)
 * (@thewatts)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/import-sql-error-wp_commentsmeta/#post-1394406)
 * figured it out…
 * i hadn’t been creating a new database – or selecting a previous one, i had just
   been choosing to ‘import’ the database file [which makes sense of the error i
   was receiving].

Viewing 1 replies (of 1 total)

The topic ‘Import SQL Error [wp_commentsmeta]’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [thewatts](https://wordpress.org/support/users/thewatts/)
 * Last activity: [16 years, 1 month ago](https://wordpress.org/support/topic/import-sql-error-wp_commentsmeta/#post-1394406)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
