A question can only have one accepted answer. Are you sure you want to replace the current answer with this one?
You previously marked this answer as accepted. Are you sure you want to unaccept it?
Write for DigitalOcean
You get paid, we donate to tech non-profits.
Find and meet other developers in your city.
Contribute to Open Source
What better hostname? You have any rules? What’s the difference?
I am not sure if there are any specific rules, but I like to use one main domain for each droplet, and give the hostname the same name.
I find it helps me to keep track of what droplet I am using.
If you use a sub-domain, the hostname will be truncated at the ., so when you ssh in your will get:
If you use a full domain you will get:
When I am logging in to multiple droplets throughout the day, I find it helpful to be able to glance at a terminal and see that I am logged in to me@mydomain
Beautiful, thank you. I will use only exemple.com.
Add comments here to get more clarity or context around a question. To answer a question, use the “Answer” field below.
Whichever you like the most.
You can type !ref in this text area to quickly search our full set of tutorials, documentation &
marketplace offerings and insert the link!
I followed the tutorials here: https://www.digitalocean.com/community/tutorials/how-to-use-haproxy-to-set-up-mysql-load-balancing--3
and successfully create HAproxy for a Master-Master Mysql
However, I am not able to find any correct way to connect a php app to the database through HAProxy
I tried `netstat -tlpn | grep 3306` and got the following result:
tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN 946/haproxy
however, when trying `mysql -h <IP of HAProxy Droplet> -u root -p`
I could not connect because of incorrect password. My passwords are exactly as the ones in the tutorials and I have tried all of them but it doesn't work.
Any help is really appreciated. Thank you in advanced
I'm currently running LAMP with gui in VirtualBox. Ive installed phpmyadmin as well. Visiting my IP address and phpmyadmin works in the web browser in the gui in VirtualBox just fine. But i don't really want a gui with LAMP. I only want the terminal. But i want to be able to use phpmyadmin with my host PC. When i try this it dosen't work. Why is that? is there something i can do to solve this?
I want to increate storage to 500GB or 1TB , Can i got it? please help me.
I have a video of 300MB and regional in Hong Kong; it will be downloaded and can be play to see in real-time by 300 people concurrently. Is the plan (4GBram, 2Cores, 4TB transfer) of $40/mo which has enough bandwidth for smooth video streaming?