C# - mySQL link

All

I’m currently accessing a mySQL database from my game using a WWWForm object and an IEnumerator to wait for the request, it works fine. I suspect my website however is being queried too many times or something similar by these requests and it results in me being temporarily banned, that’s my theory anyway as the website never goes down yet I alone cannot access it.

I think it would be more efficient to have a direct link to the database from my game though, instead of going through PHP. Or even a link on my game’s server through the C# code, then have the game pass back and forth information to the server.

My question then is how do I go about speaking to and receive information from a mySQL database in C# (if different in Unity, please also let me know how that works)?

Thanks

Bump - could someone give me a hand with communicating to mySQL? Would a C# - mySQL communication tutorial be relevant to Unity C#?

Anyone able to offer some advice?

I can’t really help but I’d guess you’re calling it from the Update routine so are sending an accidental Denial Of Service attack at yourself :stuck_out_tongue:

Have a look on the asset store as there are a few SQL things on there :slight_smile:

Jamster