I want to connect to a remote database from my localhost, but the remote DB only allows connections from whitelisted IPs.
Since I'm on a dynamic IP from my ISP, I can't have my home IP whitelisted, because it will just change again.
I have a VPS with full root access and a fixed IP, which is whitelisted.
What I want is to:
- Run a php script from my local machine
- Connect to the remote database via my VPS
- Get the query results back to my local machine for handling
How do I do this?