Title: Restore posts via SQL
Last modified: July 18, 2017

---

# Restore posts via SQL

 *  [reshoka](https://wordpress.org/support/users/reshoka/)
 * (@reshoka)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/restore-posts-via-sql/)
 * Hello,
    I tried to restore my posts from a older database to the new one. If 
   I export the posts from the old database, there is no problem but they are without
   categories. So I tried to export these tables:
 * wp_posts
    wp_postmeta wp_term_relationships wp_term_taxonomy wp_terms and wp-
   termmeta
 * But when I tried to import these to the new database, the tables are still empty.
   How can I fix this? I also saved them as .xml but I doesn´t work, it´s uploading
   but nothing is added to WordPress. I have also renamed the tables to ne new prefix
   gowp_posts etc.
 * Any idea?

Viewing 1 replies (of 1 total)

 *  Thread Starter [reshoka](https://wordpress.org/support/users/reshoka/)
 * (@reshoka)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/restore-posts-via-sql/#post-9328633)
 * note: It is the same domain as before.

Viewing 1 replies (of 1 total)

The topic ‘Restore posts via SQL’ is closed to new replies.

## Tags

 * [export](https://wordpress.org/support/topic-tag/export/)
 * [Import](https://wordpress.org/support/topic-tag/import/)
 * [MySQL](https://wordpress.org/support/topic-tag/mysql/)
 * [tables](https://wordpress.org/support/topic-tag/tables/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [reshoka](https://wordpress.org/support/users/reshoka/)
 * Last activity: [8 years, 8 months ago](https://wordpress.org/support/topic/restore-posts-via-sql/#post-9328633)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
