I have an application that requires access to a MySQL database, but since it could be installed on any PC worldwide the database would have to allow remote access. I was wondering whether it is possible to only allow remote access for reading, as this is all the application needs? If someone somehow managed to decompile the application code (C++) and get the database password, would this prevent them from damaging the database since they could only read the contents, and not write to it? Thanks.
You can create a new mysql user with only SELECT privileges on the database. Use this user for remote access. Even if the password is known, the user can only read the db and not change it.
Excellent, thank you. I'll do that. I'll also store any important stuff in a separate database that the remote user account will have no access to at all.