I have been looking through the many articles already posted on this and I still can’t quite understand it. I’ve setup things like MariaDB and another service and they both have pasted links that are weirdly typed and later I found out they used the hostname I have setup for my droplet which is (mydomain)Main. That’s how it’s setup.
So like when I connect remotely to MariaDB it will say weird things like http://(thathostname):3306 and I just went in manually to enter the IP address into BeaverDB. As well as the web service I have setup to help with monitoring and logging, it told me to connect to (hostname):(port) but they are not my domain and if I typed that in, it would of course give me an error because it’s not a TLD.
So what exactly should I use as my hostname? It’s a single domain droplet/site and no plans to ever have another domain lol.
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!
Hello,
You can use your server’s IP address as your hostname.
Keep in mind that connecting to MySQL remotely, requires some additional changes to the MySQL configuration which you can follow here:
https://www.digitalocean.com/community/tutorials/how-to-allow-remote-access-to-mysql
Are there any other tools that you are using that require you to specify a hostname?
Best,
Bobby
Hi there,
If you’ve installed MariaDB on a Droplet, you can use the Droplet’s IP address as the hostname.
For connecting to MariaDB, I could suggest the following tutorial:
Best,
Bobby
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.