Your question isn't quite clear, but if you are asking,
"How do I set up a game to access an SQL server?"
You will need to do several things.
- Pick a port to use for your game server (I currently use 4000 for testing)
- Use port forwarding on your router to forward connections to your server.
- Use one of the networking plugins to write a server application, which will serve as your SQL database application. (Never expose an SQL server directly to the internet)
- Write your game app so that it connects to your game server app and can transfer the desired data back and forth.