title: After Magento server move I get SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Name or service not known
body: <p>Please can someone help, I am tearing out what little hair I have left.</p>
  
  <p>I had to move a clients Magento from one 1and1 server to another and I am getting the above error message when trying to access the site. Whilst 1and1 server support has tried to be helpful their Magento knowledge is limited and I am not getting very far.</p>
  
  <p>Initially I was told to just upload the Magento files and database onto the new server after which I was getting the above error report. After three days of trying to get help at 1and1 someone said that I should have installed Magento first through Plesk and then uploaded the files. I duly did this and prior to uploading the original files Magento was actually working with the basic installation page and I could get access to Admin but after uploading the files and the database I am back to the square one.</p>
  
  <p>I have checked over and over again the local.xml with the settings in Plesk and as far as I can see the database settings are correct.</p>
  
  <p>The database can be seen in ssh command line. I have restarted the server.</p>