Report this

What is the reason for this report?

Cannot establish database conenction after renaming a droplet

Posted on February 16, 2015

I have just renamed a droplet from ‘domain’ to ‘domain.com’ and after that neither the web app nor roun cube’s webmail would connect to the database.

What could be wrong?

Current kernel is: Ubuntu 14.04 x64 vmlinuz-3.13.0-43-generic And it runs Vesta CP.



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Depending on how its been renamed and what has changed, Its possible that you now have some form of name lookup issue.

Renaming the server can mean that the /etc/hosts file may of been updated with a loopback address in the domain for your main.com site.

This can mean that the server rather than going to DNS for an IP address, its coming back with your loopback address based on the hosts file entry.

I have no idea if this makes sense to you, but if your scripts or server code or whatever has your domain name hardcoded and wanted to do a lookup, its possible that the loopback address is causing issues…

This comment has been deleted

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.