The two recommended ways to connect to a MySQL datavase:
- RDC (Remote Database Connector)
- PHP script that acts as a web service
I think that there is also a MySQL library in the forum that allows you to directly connect to the database. I don't recommend you to choose this approach.