Ok, I have about 10 days with nothing to do

so I was wanting to work on a personal project. Im constrained to using VB6 for the work. It has been quite some time since I used VB6 and I was never quite an expert in it to start with so please bare with me.
I would like to use VB6 to connect to a MYSQL database that is running on my website (GoDaddy) but I have no idea how to use VB6 to connect to anything online

I will also need to run quarry's.
In short Im looking for the VB6 equivalent of this PHP code:
and instructions to run a quarry.
Thanks in advance for any insight.