{"id":248,"date":"2016-03-15T01:06:27","date_gmt":"2016-03-14T22:06:27","guid":{"rendered":"http:\/\/presta.site\/blog\/?p=248"},"modified":"2016-03-15T01:07:24","modified_gmt":"2016-03-14T22:07:24","slug":"how-to-change-prestashop-database-name-and-password","status":"publish","type":"post","link":"https:\/\/presta.site\/blog\/en\/how-to-change-prestashop-database-name-and-password\/","title":{"rendered":"How to change PrestaShop database name and password"},"content":{"rendered":"<p>You may want to change database information after moving your site to a new server or after changing database credentials.<br \/>\nIf you need to modify db name or password, you have to edit the settings file. You can do it by using a FTP client (for example Filezilla).<\/p>\n<p><!--more--><br \/>\nConnect to your server via chosen FTP client. You&#8217;ll see some files and directories.<br \/>\nFind your shop root directory and then navigate to the directory <span style=\"font-weight:bold;\">\/config<\/span> and edit the file <span style=\"font-weight:bold;\">settings.inc.php<\/span>.<br \/>\n<a href=\"http:\/\/presta.site\/blog\/wp-content\/uploads\/2016\/03\/31.png\"><img decoding=\"async\" loading=\"lazy\" src=\"http:\/\/presta.site\/blog\/wp-content\/uploads\/2016\/03\/31.png\" alt=\"3\" width=\"1014\" height=\"831\" class=\"aligncenter size-full wp-image-273\" srcset=\"https:\/\/presta.site\/blog\/wp-content\/uploads\/2016\/03\/31.png 1014w, https:\/\/presta.site\/blog\/wp-content\/uploads\/2016\/03\/31-300x246.png 300w, https:\/\/presta.site\/blog\/wp-content\/uploads\/2016\/03\/31-768x629.png 768w\" sizes=\"(max-width: 1014px) 100vw, 1014px\" \/><\/a><br \/>\nIn that file you need to find constants <span style=\"font-weight:bold;\">_DB_NAME_<\/span> and <span style=\"font-weight:bold;\">_DB_PASSWD_<\/span><br \/>\nChange their values as you need and save\/upload the file back to your server. All done.<\/p>\n<p>Please note that if you will set wrong database name or password, your site will stop working. <span style=\"font-weight:bold;\">Do this with caution!<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>You may want to change database information after moving your site to a new server or after changing database credentials. If you need to modify db name or password, you have to edit the settings file. You can do it by using a FTP client (for example Filezilla).<\/p>\n","protected":false},"author":1,"featured_media":344,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/presta.site\/blog\/wp-json\/wp\/v2\/posts\/248"}],"collection":[{"href":"https:\/\/presta.site\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/presta.site\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/presta.site\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/presta.site\/blog\/wp-json\/wp\/v2\/comments?post=248"}],"version-history":[{"count":9,"href":"https:\/\/presta.site\/blog\/wp-json\/wp\/v2\/posts\/248\/revisions"}],"predecessor-version":[{"id":279,"href":"https:\/\/presta.site\/blog\/wp-json\/wp\/v2\/posts\/248\/revisions\/279"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/presta.site\/blog\/wp-json\/wp\/v2\/media\/344"}],"wp:attachment":[{"href":"https:\/\/presta.site\/blog\/wp-json\/wp\/v2\/media?parent=248"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/presta.site\/blog\/wp-json\/wp\/v2\/categories?post=248"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/presta.site\/blog\/wp-json\/wp\/v2\/tags?post=248"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}