It is very NOT SAFE for a remote client to access a database via the open Internet. That's what was at the root of the infamous "SQL Slammer" exploit for Microsoft Windows/SQL Server where cashpoint (ATM) machines got hacked right and left - in addition to lots of other damage.
It's more likely that your have a cloud host with a MySQL server available and in that case, apps that also run in that same cloud are OK, since traffic between client and database does not occur over the open Internet - just the cloud LAN (which is often using a VPN isolated from other cloud clients).
Being persecuted doesn't in any way prove your righteousness or your beliefs. Many people get persecuted because they are repugnant or annoying. Or just because they can be.
incandescent light gives off an efficient form of heat. You must be THIS smart to ride this ride. Tiny ad:
professionally read, modify and write PDF files from Java