Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by pippo19 · Sep 19, 2014 at 02:42 PM · androiddatabaseconnectiononline

Android | online database

Hy all, I would like to create a game for Android, and I would like to be able to connect to an online database, I have documented but I still have a lot of confusion, If I create a database in MySQL I can put it online? (Registering the domain)

once put online, I can do that from the game I can read the data stored in it?

Sorry for the bad english, Thanks in advance

Comment
Add comment · Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Kiwasi · Sep 26, 2014 at 09:04 AM 0
Share

As another alternative there are relatively free third party services that will do the database side for you. Parse is one I use, but there are others.

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by Graham-Dunnett · Sep 19, 2014 at 02:43 PM

This is not really a Unity question. Typically you have a web server, which has some PHP or similar that talks to the database. You can then make GET and POST requests to the PHP to read and write data. On the Unity side you just need to use the WWW and WWWPost classes.

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image pippo19 · Sep 20, 2014 at 02:24 PM 0
Share

so i should do a database linked to web software that talk with Unity Project?.... can u link here a guide than can explane me this ? tnx

avatar image pippo19 · Sep 20, 2014 at 02:27 PM 0
Share

regarding the safety, this way is safe? because i read that a sniffer can easily take pass and acc of database from the script

avatar image
0

Answer by SuperMasterBlasterLaser · Sep 19, 2014 at 03:17 PM

Read something about RESTful services. You have server (written in Java, .NET, PHP, etc) hosted on the internet. You create POST, GET HTTP requests to your server. Server handles your request and sends response (JSON, XML or simple String). Inside Unity you should read something about WWW, WWWForm.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image pippo19 · Sep 26, 2014 at 08:44 AM 0
Share

I managed to make any connection between unity and the database using the WWW form, But when I mount the apk and run, tells me that it can not connect to the database ... any idea ??

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

7 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

How to integrate SQL database in game? 1 Answer

Android Mysql Database online 3 Answers

Save firebase database in offline mode too with the help of Google Play Games Services,Save firebase database offline with Google Play Games Services 0 Answers

how to access and modify my existing database made by DB browser for SQLite in unity after build 0 Answers

Should I load all the database items on my android device? 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges