- Home /
Acces database from Unity
Hi,
I am making a mobile app with Unity. What I'm trying to do is to create a server-side database, which I already has done with MySQL and PhpMyAdmin. I have then created a table, which I need to acces from Unity (Android, iOS).
How is this possible?
Thank you in advance.
Andreas.
You should be able to connect to $$anonymous$$ysql database with C# using $$anonymous$$ySql.Data.$$anonymous$$ySqlClient Here's an example: http://www.codeproject.com/Articles/43438/Connect-C-to-$$anonymous$$ySQL
Or you could just create a simple php script and call them through WWW class.
Thank you.
I have a table with 50,000 fields with 3 values each in Php$$anonymous$$yAd$$anonymous$$ on my SQL database. These values should be loaded into unity to show them on map.
I have no experience in databases, so is there a tutorial anywhere? Or where do I start?
Best regards,
Andreas.
50,000 fields?! First off if you are using Unity free version you won't be able to do any DB work. Secondly, I would advice not to do any DB work directly from your application, I think good practice would be to have a web service set up that accesses the DB and sends back responses.
Your answer
Follow this Question
Related Questions
Best way to connect to database for my mobile game? 3 Answers
Mobile Database for Unity 0 Answers
Hosted Database for Mobile Game 0 Answers
[Closed] www.data help 0 Answers
Develope Cloud & Vuforia application 1 Answer