{"id":58151,"date":"2015-12-15T06:52:03","date_gmt":"2015-12-15T11:52:03","guid":{"rendered":"http:\/\/www.templatemonster.com\/help\/?p=58151"},"modified":"2016-02-18T03:58:25","modified_gmt":"2016-02-18T08:58:25","slug":"prestashop-1-6-x-how-to-upgrade-database-to-the-latest-version-after-installing-sample-data-designed-for-previous-versions-of-prestashop","status":"publish","type":"post","link":"https:\/\/www.templatemonster.com\/help\/prestashop-1-6-x-how-to-upgrade-database-to-the-latest-version-after-installing-sample-data-designed-for-previous-versions-of-prestashop.html","title":{"rendered":"PrestaShop 1.6.x. How to upgrade database to the latest version  (after installing sample data designed for previous versions of PrestaShop)"},"content":{"rendered":"<p>\r\n<p>This tutorial shows how to upgrade the database to the latest version (after installing sample data designed for previous versions of PrestaShop).<\/p>\r\n<p><a href=\"http:\/\/www.youtube.com\/watch?v=UADfujoYOvM?width=1280&amp;height=720\" rel=\"prettyPhoto\">PrestaShop 1.6.x. How to upgrade database to the latest version (after installing sample data designed for previous versions of PrestaShop)<\/a><\/p>\r\n<ol>\r\n<li>\r\n<p>Please download and unzip the latest version of PrestaShop engine from <a href=\"https:\/\/www.prestashop.com\">official website<\/a>: <\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/11\/PrestaShop-1.6.x.-How-to-upgrade-database-to-the-latest-version-1.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/11\/PrestaShop-1.6.x.-How-to-upgrade-database-to-the-latest-version-1-300x208.jpg\" alt=\"PrestaShop 1.6.x. How to upgrade database to the latest version-1\" width=\"300\" height=\"208\" class=\"aligncenter size-medium wp-image-58152\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/11\/PrestaShop-1.6.x.-How-to-upgrade-database-to-the-latest-version-1-300x208.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/11\/PrestaShop-1.6.x.-How-to-upgrade-database-to-the-latest-version-1-150x104.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/11\/PrestaShop-1.6.x.-How-to-upgrade-database-to-the-latest-version-1-1024x710.jpg 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/11\/PrestaShop-1.6.x.-How-to-upgrade-database-to-the-latest-version-1.jpg 1040w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n<\/li>\r\n<li>\r\n<p>Open <strong>\\install\\upgrade\\sql <\/strong>folder. In our case the template sample data was designed for 1.6.0.10 version. We need to import sql files starting from this version (sample data was designed for 1.6.0.10  version in our case). Be sure to select correct version of PrestaShop for the last sql file. We are using the latest version, that is why we have selected .sql files from 1.6.0.10 to 1.6.1.2 version: <\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/11\/PrestaShop-1.6.x.-How-to-upgrade-database-to-the-latest-version-2.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/11\/PrestaShop-1.6.x.-How-to-upgrade-database-to-the-latest-version-2-300x247.jpg\" alt=\"PrestaShop 1.6.x. How to upgrade database to the latest version-2\" width=\"300\" height=\"247\" class=\"aligncenter size-medium wp-image-58153\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/11\/PrestaShop-1.6.x.-How-to-upgrade-database-to-the-latest-version-2-300x247.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/11\/PrestaShop-1.6.x.-How-to-upgrade-database-to-the-latest-version-2-150x124.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/11\/PrestaShop-1.6.x.-How-to-upgrade-database-to-the-latest-version-2.jpg 644w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n<\/li>\r\n<li>\r\n<p>Open sql files in editor. We are using <a href=\"https:\/\/notepad-plus-plus.org\" target=\"_blank\" rel=\"nofollow\">Notepad++<\/a> editor: <\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/11\/PrestaShop-1.6.x.-How-to-upgrade-database-to-the-latest-version-3.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/11\/PrestaShop-1.6.x.-How-to-upgrade-database-to-the-latest-version-3-300x170.jpg\" alt=\"PrestaShop 1.6.x. How to upgrade database to the latest version-3\" width=\"300\" height=\"170\" class=\"aligncenter size-medium wp-image-58154\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/11\/PrestaShop-1.6.x.-How-to-upgrade-database-to-the-latest-version-3-300x170.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/11\/PrestaShop-1.6.x.-How-to-upgrade-database-to-the-latest-version-3-150x85.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/11\/PrestaShop-1.6.x.-How-to-upgrade-database-to-the-latest-version-3-1024x579.jpg 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/11\/PrestaShop-1.6.x.-How-to-upgrade-database-to-the-latest-version-3.jpg 1258w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n<\/li>\r\n<li>\r\n<p>Press <strong>CTRL+F<\/strong> in order to open search dialog in Notepad++ software. Open <strong>Replace<\/strong> tab. Change all instances of <strong>PREFIX_<\/strong> with PrestaShop database prefix. By default PrestaShop uses<strong> ps_<\/strong> prefix. Click <strong>Replace All.<\/strong> You may also use<strong> Replace All in All opened Documents<\/strong> function. In this case changes will be applied to all files opened in Notepad++ editor (We are going to perform changes in files one by one):<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/11\/PrestaShop-1.6.x.-How-to-upgrade-database-to-the-latest-version-4.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/11\/PrestaShop-1.6.x.-How-to-upgrade-database-to-the-latest-version-4-300x169.jpg\" alt=\"PrestaShop 1.6.x. How to upgrade database to the latest version-4\" width=\"300\" height=\"169\" class=\"aligncenter size-medium wp-image-58155\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/11\/PrestaShop-1.6.x.-How-to-upgrade-database-to-the-latest-version-4-300x169.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/11\/PrestaShop-1.6.x.-How-to-upgrade-database-to-the-latest-version-4-150x85.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/11\/PrestaShop-1.6.x.-How-to-upgrade-database-to-the-latest-version-4-1024x578.jpg 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/11\/PrestaShop-1.6.x.-How-to-upgrade-database-to-the-latest-version-4.jpg 1266w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<\/li>\r\n<li>\r\n<p class=\"attention\">IMPORTANT. Please open 1.6.1.0.sql file (in case it should be applied to your database).  Change all instances of <\/p>\r\n<p> <strong><code>ENGINE=ENGINE_TYPE<\/code><\/strong> to <strong><code>ENGINE=InnoDB<\/code>.<\/strong><\/p>\r\n<p>You should change it only in 1.6.1.0.sql file:<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/11\/PrestaShop-1.6.x.-How-to-upgrade-database-to-the-latest-version-5.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/11\/PrestaShop-1.6.x.-How-to-upgrade-database-to-the-latest-version-5-300x157.jpg\" alt=\"PrestaShop 1.6.x. How to upgrade database to the latest version-5\" width=\"300\" height=\"157\" class=\"aligncenter size-medium wp-image-58156\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/11\/PrestaShop-1.6.x.-How-to-upgrade-database-to-the-latest-version-5-300x157.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/11\/PrestaShop-1.6.x.-How-to-upgrade-database-to-the-latest-version-5-150x78.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/11\/PrestaShop-1.6.x.-How-to-upgrade-database-to-the-latest-version-5-1024x535.jpg 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/11\/PrestaShop-1.6.x.-How-to-upgrade-database-to-the-latest-version-5.jpg 1268w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<\/li>\r\n<li>\r\n<p>Now we should create a new file and copy content of sql files to a single file. Copy and paste contents of sql files. Just add code to the end of file. After that we should save this file with the following name:<br \/>\r\n  <strong>dump.lqs<\/strong>  <\/p>\r\n<\/li>\r\n<li>\r\n<p>Open Prestashop admin section. Click on <strong>Install demo store<\/strong> (enable Sample Data Install module in case such item does not show up). Click <strong>Browse local files<\/strong>:<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/11\/PrestaShop-1.6.x.-How-to-upgrade-database-to-the-latest-version-6.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/11\/PrestaShop-1.6.x.-How-to-upgrade-database-to-the-latest-version-6-300x171.jpg\" alt=\"PrestaShop 1.6.x. How to upgrade database to the latest version-6\" width=\"300\" height=\"171\" class=\"aligncenter size-medium wp-image-58157\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/11\/PrestaShop-1.6.x.-How-to-upgrade-database-to-the-latest-version-6-300x171.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/11\/PrestaShop-1.6.x.-How-to-upgrade-database-to-the-latest-version-6-150x85.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/11\/PrestaShop-1.6.x.-How-to-upgrade-database-to-the-latest-version-6-1024x583.jpg 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/11\/PrestaShop-1.6.x.-How-to-upgrade-database-to-the-latest-version-6.jpg 1243w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n<\/li>\r\n<li>\r\n<p>Select dump.lqs file created previously. Click <strong>Continue install<\/strong>. Importing dump.lqs may take some time:<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/11\/PrestaShop-1.6.x.-How-to-upgrade-database-to-the-latest-version-7.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/11\/PrestaShop-1.6.x.-How-to-upgrade-database-to-the-latest-version-7-300x159.jpg\" alt=\"PrestaShop 1.6.x. How to upgrade database to the latest version-7\" width=\"300\" height=\"159\" class=\"aligncenter size-medium wp-image-58158\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/11\/PrestaShop-1.6.x.-How-to-upgrade-database-to-the-latest-version-7-300x159.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/11\/PrestaShop-1.6.x.-How-to-upgrade-database-to-the-latest-version-7-150x80.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/11\/PrestaShop-1.6.x.-How-to-upgrade-database-to-the-latest-version-7-1024x544.jpg 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/11\/PrestaShop-1.6.x.-How-to-upgrade-database-to-the-latest-version-7.jpg 1223w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n<\/li>\r\n<li>\r\n<p>You will get Sample data installation complete with .sql file be applied to PrestaShop database. We have performed database upgrade:<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/11\/PrestaShop-1.6.x.-How-to-upgrade-database-to-the-latest-version-8.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/11\/PrestaShop-1.6.x.-How-to-upgrade-database-to-the-latest-version-8-300x183.jpg\" alt=\"PrestaShop 1.6.x. How to upgrade database to the latest version-8\" width=\"300\" height=\"183\" class=\"aligncenter size-medium wp-image-58159\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/11\/PrestaShop-1.6.x.-How-to-upgrade-database-to-the-latest-version-8-300x183.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/11\/PrestaShop-1.6.x.-How-to-upgrade-database-to-the-latest-version-8-150x92.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/11\/PrestaShop-1.6.x.-How-to-upgrade-database-to-the-latest-version-8-1024x625.jpg 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/11\/PrestaShop-1.6.x.-How-to-upgrade-database-to-the-latest-version-8.jpg 1239w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n<\/li>\r\n<\/ol>\r\n<p>Feel free to check the detailed video tutorial below:<\/p>\r\n<p><a href=\"http:\/\/www.youtube.com\/watch?v=UADfujoYOvM?width=1280&amp;height=720\" rel=\"prettyPhoto\">PrestaShop 1.6.x. How to upgrade database to the latest version (after installing sample data designed for previous versions of PrestaShop)<\/a><\/p>\r\n<p><\/p>","protected":false},"excerpt":{"rendered":"<p>This tutorial shows how to upgrade database to the latest version (after installing sample data designed for previous versions of PrestaShop).<\/p>\n","protected":false},"author":39,"featured_media":58162,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[732],"tags":[545,684,552,1042,1613],"_links":{"self":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/58151"}],"collection":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/users\/39"}],"replies":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/comments?post=58151"}],"version-history":[{"count":0,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/58151\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media\/58162"}],"wp:attachment":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media?parent=58151"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/categories?post=58151"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/tags?post=58151"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}