skepas Posted August 24, 2017 Share Posted August 24, 2017 Hello everyone,well as the title says, im trying to move from old.domain.com to domain.com. The problem here is, I have made a new database, I have made backup of old db and files, uploaded them to new domain and get an 500 error. Also I can't connect to admin panel becuase of Link to database cannot be established:SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Name or service not known at line 102 in file classes/db/DbPDO.php 97. public function connect() 98. { 99. try { 100. $this->link = $this->_getPDO($this->server, $this->user, $this->password, $this->database, 5); 101. } catch (PDOException $e) { 102. throw new PrestaShopException('Link to database cannot be established:'.$e->getMessage()); 103. } 104. 105. // UTF-8 support 106. if ($this->link->exec('SET NAMES \'utf8\'') === false) { 107. throw new PrestaShopException('PrestaShop Fatal error: no utf-8 support. Please check your server configuration.'); Do you have any suggestions? Link to comment Share on other sites More sharing options...
Scully Posted August 24, 2017 Share Posted August 24, 2017 (edited) Your settings for the database connection in the /config directory is wrong. Maybe you still use the old settings file which isn't valid any more? Furthermore you have to change your base domain in backoffice - settings - url & seo and rewrite the .htaccess file. Edited August 24, 2017 by Scully (see edit history) 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