x


Connect to MySQL Database with Unity using Hamachi

Hey everyone. I want to know if it is possible to connect to a database with a client poiting to my MySQL database via Hamachi or something. The problem by using the normal IP is that my IP is shared between all the network users(called via radio network) and that's totaly uncool. So where my 'server' in the connection parameter should point to? My Hamachi account or my normal IP? Could you provide me some help with this? Also in my configuration file in MySQL, what would be the IP in the case of a connection with Hamachi? The normal one or the Hamachi IP?

I'll be so thankful!

Thanks from now!

more ▼

asked Apr 16 '12 at 02:51 PM

GutoThomas gravatar image

GutoThomas
593 32 46 47

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

You do not need to have hamachi to connect to a SQL database. Simply host some php files on the server that recieve varibles you want to send to the database, you can then have them connect and return the results. Use the WWWForm class to send the variables to the .php and recieve anything that is 'echo' in php using the www.data command.

more ▼

answered Sep 04 '12 at 02:05 PM

PProductions gravatar image

PProductions
53 1 1 4

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

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

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x232
x61
x3

asked: Apr 16 '12 at 02:51 PM

Seen: 856 times

Last Updated: Sep 04 '12 at 02:05 PM