how to restore a wordpress website, when hosting has got expired but the hosting company gives you a bunches of zip file?

I am having a premium wordpress theme which was hosted in godaddy, but its hosting got expired. I somehow managed to get all the previous files from godaddy by paying a hefty amount of money. but i don't know how to restore my site. currently it is showing "error establishing a database connection". what can be done?

Topic server-load Wordpress

Category Web


You have to import DB INTO Godaddy DB. Write down database information (hostname, username, password) and update your wp-config.php


On your new hosting place, create a new/empty WP install. That will create a database. Remember the credentials.

Then create a new database, and import the data you got from the old host. Remember the credentials; assign the user/pass to that database.

Then go into the new install, inside the wp-config.php file, and change the database name to the new one, with the credentials that match.

Then log into the new install's admin area. If needed, use phpMyAdmin to edit the wp-users table to change the email for the admin user, then use the lost password thing to reset that password. (You could do this via editing that record in phpMyAdmin, entering the password, changing it to MD5, etc. but the lost password thing is easier.)

That should allow you to log into the admin area of your site. Do any updates of plugins/themes (you will need to copy the plugins/themes folder from your backed up files that you got from the old host).

Since the database contains all of the posts (and configurations), specifying the new database name for the install should get you your content. (Remember that you imported your content from the backup you got.)

There might be some more tweaking involved with plugins and theme settings, but that should get you started.

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.