Title: Error 1046 when importing SQL DAtabase
Last modified: August 22, 2016

---

# Error 1046 when importing SQL DAtabase

 *  [Marco_M](https://wordpress.org/support/users/marco_m/)
 * (@marco_m)
 * [11 years ago](https://wordpress.org/support/topic/error-1046-when-importing-sql-database/)
 * Hi I try to import the SQL Database of an existing WordPressBlog due to a change
   of Providers, but I keep getting this error:
 * Fehler
 * SQL-Befehl:
 * —
    — Table structure for table `wordpresswp_commentmeta` —
 * DROP TABLE IF EXISTS `wordpresswp_commentmeta`;
 * MySQL meldet: Dokumentation
    #1046 – No database selected
 * CAn somebody help me in what I am doing wrong? Thx Marco

Viewing 1 replies (of 1 total)

 *  [Prashant](https://wordpress.org/support/users/warezthief/)
 * (@warezthief)
 * [11 years ago](https://wordpress.org/support/topic/error-1046-when-importing-sql-database/#post-5930082)
 * Hi,
 * You first need to select a database and then run the query.
 * e.g Check this image
 * [IMAGE](http://mysqlbackuponline.com/blog/wp-content/uploads/2013/12/phpmyadmin_url.jpg)
 * It has database listed on left hand side. You should have something listed over
   there. First select required database and then try running the query.
 * If still doesn’t work, Post a link to screenshot where you are getting this error.

Viewing 1 replies (of 1 total)

The topic ‘Error 1046 when importing SQL DAtabase’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [Prashant](https://wordpress.org/support/users/warezthief/)
 * Last activity: [11 years ago](https://wordpress.org/support/topic/error-1046-when-importing-sql-database/#post-5930082)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
