Hi, what is the best and secure way to connect to MySQL DB via Sequel PRO or MySQL Workbench, hosted into a dedicate VPS that is connected to app servers via private networking? If MySQL daemon is listening to private IP, it will not be available from public IP (obviously, I’m scared about exposing my DB droplet to public internet).
I’m using the 2nd server configuration illustrated in this guide (https://www.digitalocean.com/community/tutorials/5-common-server-setups-for-your-web-application), called “Separate Database Server”.
Thanks a lot
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!
Hey there,
There would be a few ways you could accomplish this. I’d recommend the straight forward option of connecting via SSH with Sequel Pro. You can enter in the SSH details of your database server along with your MySQL details and you would not need open port 3306 up to the public or make MySQL listen on the public interface.
Their documentation is sparse, but you’r looking for the SSH tab when creating a new connection. http://www.sequelpro.com/docs/what-type-of-connection-do-i-have
Thank you and please let us know if there is anything else we can do for you.
Happy coding,
Jon Schwenn Platform Support Specialist DigitalOcean
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.