sanyo13 Posted February 17, 2015 Share Posted February 17, 2015 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 More sharing options...
tdr170 Posted February 17, 2015 Share Posted February 17, 2015 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 More sharing options...
sanyo13 Posted February 17, 2015 Author Share Posted February 17, 2015 I installed the same version of prestashop. Added the name and password of the old database when I installed the presashop. (in php myadmin i have the old datas, so i used thats name and password) Isn't it enough? Link to comment Share on other sites More sharing options...
tdr170 Posted February 17, 2015 Share Posted February 17, 2015 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 More sharing options...
sanyo13 Posted February 17, 2015 Author Share Posted February 17, 2015 (edited) exported my phpmyadmin database and i found my old products in that. And i didnt made a new database when i reinstalled the prestashop, so my new system should use the old database or not? And my phpmyadmin made backup files everyday! Edited February 17, 2015 by sanyo13 (see edit history) Link to comment Share on other sites More sharing options...
tdr170 Posted February 17, 2015 Share Posted February 17, 2015 When you say installed do you mean uploaded files or uploaded files and did www.mysite.com/install Link to comment Share on other sites More sharing options...
sanyo13 Posted February 17, 2015 Author Share Posted February 17, 2015 uploaded files and did /install Link to comment Share on other sites More sharing options...
sanyo13 Posted February 17, 2015 Author Share Posted February 17, 2015 finally u could upload my backup into the phpmyadmin, then i added the database to my shop (when i installed the prestashop system) but then my frontoffice crashed "500 server error" and i can't login to my backoffice (admin). Link to comment Share on other sites More sharing options...
tdr170 Posted February 18, 2015 Share Posted February 18, 2015 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 More sharing options...
sanyo13 Posted February 18, 2015 Author Share Posted February 18, 2015 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 More sharing options...
sanyo13 Posted February 19, 2015 Author Share Posted February 19, 2015 The only problem i have now is taht i cannot reach teh admin. I cant login. Can i somehow add a superadmin without admin? like phpmyadmin or i dont know... :/ Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now