Hi guys, I have a question about using a MySQL database with Photon.
First of all, would it be better to:
A. Establish a connection with Photon, then have Photon execute the MySQL database commands on the Server localhost.
B. Establish a connection with Photon and the MySQL databases separately with the same external IP but different ports.
I assume that A. is more secure? Also, for either selection, would it be better to keep the connection open to the database constantly, or open and close it for each database command?
Could you explain the security risks associated with A, B, or even a different option that you might think is better? (and ways to increase security)
I am comfortable with MySQL, but still learning how Photon works. I am making a Windows Standalone with Unity3D.
I'd understand how to code B, but how would I go about making the database command execute on localhost for the server computer (if A. is the better choice)?
Not sure if this is relevant, but these questions arose during the process of creating a Login system (It is not a MMO, Login will go to the main menu, and then to a Lobby.)
Thanks
First of all, would it be better to:
A. Establish a connection with Photon, then have Photon execute the MySQL database commands on the Server localhost.
B. Establish a connection with Photon and the MySQL databases separately with the same external IP but different ports.
I assume that A. is more secure? Also, for either selection, would it be better to keep the connection open to the database constantly, or open and close it for each database command?
Could you explain the security risks associated with A, B, or even a different option that you might think is better? (and ways to increase security)
I am comfortable with MySQL, but still learning how Photon works. I am making a Windows Standalone with Unity3D.
I'd understand how to code B, but how would I go about making the database command execute on localhost for the server computer (if A. is the better choice)?
Not sure if this is relevant, but these questions arose during the process of creating a Login system (It is not a MMO, Login will go to the main menu, and then to a Lobby.)
Thanks