   Online database security
  Hello guys,I am newbie in database\network programming. I want to add someonline stats (best players etc) for simple logic game. Ideais to host database (MySQL in my case) on some server providedby 3rd party provider (only DB hosting, no additional server logic).Database access params (login\password)can be obviously gained bypotential attacker by stepping through program code. This informationcan be than used by anyone to modify database, what is somethingI don't want to happen :) Are there any common solutions for this problem ?Many thanks !Petr   
  Databases must never be exposed to internet. Only required functionality should be provided through some interface, but not direct DB access.There is no solution to validity of data submitted by users outside of your enforcable control.The only way to ensure integrity in this case is to host the games on server, and present the stats through read-only interface (web page or similar).   ;  The architecture you need is generally a database server coupled with an application server. The game submits stats to the application server, and the application server stores in the database.You identify users through some account they create (say, email + registration code + password). If you find that a user is cheating, you can delete data from that user from the database. To avoid users just creating new accounts, you have to charge for account creation (hence the registration code).;  Thanks guys !   