MySQL secure connection


I was searching for a while if there is a way to connect securely to mysql database. Is there a way to include securely my database information (user,password etc) without the user being able to have access to these information?


This is a variation on the theme in a prior topic and my answer there applies:

Anything you store on the user’s machine is eventually obtainable by them. If you want to completely secure the connection between the user and a database, you need to put a server that you control and the user does not have access to in between the two.