Jump to content

using old database after reinstall


Recommended Posts

Hello!

 

I just reinstalled my prestashop. When i isntalled the new one i added my old database name/password. But at the end i couldnt see anything from the database (products, contents etc... ) Can i somehow use them?

 

Thanks!

 

Regards,

Peter

Link to comment
Share on other sites

Where did you add them, is the install same location ie: root sub domain, did you edit the ps_shop_url and point it to the new shop, did you edit the settings.inc.php file and change the database name, user and url path, is it the same version as the old site.

Link to comment
Share on other sites

Typically when you install prestashop if the database is populated it wont install and will give an error that database is in use or something to that effect.

If you look at the database my guess is that it does not contain the old data, if you have a backup of the database you can import it into the database of the current shop to populate it with the original data.

Link to comment
Share on other sites

Thats because the keys in the new install do not match those of the previous install.

If you look in the settings.inc.php file you will see some keys these are security keys and are used for admin and customer login.

 

When I do an install of the same version say for testing I upload the files then upload the settings file to the config folder from the old install.

I would also upload any changed files such as themes, img, overrides and so on.

Then create a database and use a backup to populate the database I then edit the settings file and input the database name, user and password.

In this manner there is no actual install just a copy of the original, you could also do an install but if youq import the old database you would need the settings file for you and your customers to be able to login.

Do you have a backup of the original shop.

Link to comment
Share on other sites

Uploaded my old theme, and the frontoffice is back. My products are back, but my cms menus not. Thats the smallest problem but... . I had only a superadmin nobody else yet, and would be enough for a while. I dont have the old settings file, can i somehow correct it?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...