Reputation: 13
I had a website based on wordpress.Then domain has expired and now I registered a new domain and built a new website which is based on wordpress too. Now I want to have my previous website's contents to be in the new one. I didn't make any backup using wordpress export function, So import option in new website can't be useful. The only thing is backed up is MYSQL database, how can I restore posts in the new website? Thanks
Upvotes: 0
Views: 1506
Reputation: 180
Export your old data
you have a .gz file and import the same file to new site....
Upvotes: 0
Reputation: 17561
See Moving WordPress « WordPress Codex and How to Move WordPress Blog to New Domain or Location » My Digital Life
Upvotes: 1
Reputation: 7773
Just import your backup database into your new database. and change the siteUrl and wordpressUrl in wp_option table to new domain. Then updolad all the wordpress files from your old domain into your new domain, change the database connection info in wp-config.php settings. then it will work as before.
Upvotes: 0