- Home /
How to connect unity to a database?
I work for a web design and development company in Lebanon, I'm a 21 years old student, never asked for money, I wanna have experience...
There's a client who asked us to create a game where people can sign up and log in and see the score, the client doesn't care what the game is, the boss gave me the job because I like it. I'm free to create any game, 3d or 2d, the client wants to use it as a demo to see if people are going to play it.
My boss owns many servers in usa, some of them are used by godaddy, amazon and 1 is used by hostgator. So I think he wants to host the game 1 of his servers. He has linux servers and apache installed of course, he has ms servers but doesn't use them unless the clients ask.
He asked me to create a php game connected to mysql, i said this is not an option unless the client wants one of the silliest games.
So what do I have left? flash is too heavy, it takes a long time to load, and the connection in lebanon is too slow for most of the users, i mean too slow, a 8m video on youtube will take about 10m to load, that slow
So flash is not an option for now. what i have left is java, maybe java monkey, or unity 3d
therefore I'm asking you this before i work with java, can i connect it to mysql and make a sign up log in page?
and can i deploy the game on any server? I already know how to deploy it on dimerocker.com, never tried any other server, so does it work on any server or does the server have to have some special software installed?
Answer by runevision · Jan 11, 2011 at 03:10 PM
Yes, you can connect Unity with a MySQL database.
See these questions and answers for more details:
Is it possible to send and recieve data from/to a MySql server?
How can I send and receive data to and from a URL, i.e. server side scripts, web services, etc?
Answer by davedev · Jan 11, 2011 at 02:41 PM
I think you make some false assumptions. Flash games can be made quite small, smaller than Java or Unity 3D if the user already has the Flash plugin downloaded. Some Flash files can be quite big because of their content, but that's true too for Java and Unity 3D. Unity will provide extra complexity that you might not need to do a simple game and make some things harder than Flash or Java.
Here's some more about Flash vs. Java: gamedev.nt
This is not answering the questions, which is "How to connect unity to a database?".
Your answer
Follow this Question
Related Questions
help with the WWW Class 1 Answer
How Do i check for Duplicate username in database 4 Answers
Unity Null Reference Error 1 Answer
Login authentication on Unity 5 with php using xampp, and mysqli 0 Answers
MYSQL for webplayer 0 Answers