By Arthur
I have several droplets and use ServerPilot. Is it possible to access the database in one droplet from another when they are in the same VPC? I followed the VPC instructions and am able to ping the Private IPs between droplets, but it’s not letting me connect to a database in PHP.
My databases are created using ServerPilot. If this is a firewall issue it looks like I would neat a subscription with HeatShield for custom firewall rules, but I would prefer not to get another subscription.
I created a Managed Database and that works in multiple droplets, but I was wondering if this is possible without needing the Managed Database.
Thank you
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!
Hi there @arthur3,
I have not done this through ServerPilot, but the answer should be yes, this should be doable.
What you would need to do is to prepare your MySQL instance for remote connections, to do that you can follow the steps here:
https://www.digitalocean.com/community/tutorials/how-to-allow-remote-access-to-mysql
Let me know how it goes! Regards, 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.