2048 icon indicating copy to clipboard operation
2048 copied to clipboard

Save ranking on a mysql database

Open wbecher opened this issue 10 years ago • 3 comments

Is there a way to optionally save the records to a mysql database?

wbecher avatar Mar 27 '14 16:03 wbecher

No, if the hosting is to remain on GitHub that is.

stuntguy3000 avatar Mar 27 '14 20:03 stuntguy3000

Are you saying if a MySQL saves feature were added, GitHub would no longer host the project?

DJLunacy avatar May 15 '17 18:05 DJLunacy

I think what @stuntguy3000 means is that, in order to save data to a MySQL (or any) database, your program needs a connection string for that database. However, storing connection strings in open-source repositories (like GitHub) is not at all secure, because now essentially anyone can connect to your database. Therefore, if rankings were to be stored in a database, then 2048's source code (or at least the connection string) would need to be moved off GitHub to a private repository.

Rabadash8820 avatar May 15 '17 21:05 Rabadash8820