- Home /
MySql On Web ?
Hi ...
I'm trying to make my game working online ..
On Pc the game connect with the Database (MySql) , and working fine .
but when I change the platform to Web ,it doesn't work and give me an error on MySql.Data.dll
how can I fix that ????
Answer by Kiloblargh · Dec 31, 2013 at 05:35 PM
I have no idea what's causing your problem, although the cross domain.xml comes to mind, but it's a moot point anyway because you are doing it wrong. Do not connect to the SQL database from your game.
Connect to a PHP script using WWWForm
, and have the PHP script connect to your SQL database and echo the response.
The reason is, if your game can connect to your SQL database from anywhere on the Internet and update it, then my game can connect to your SQL database from anywhere on the Internet and empty it.
hmmmm , that's mean I have to make all the commands by PHP code :(