How to set up and secure remote MySQL connections