Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I made a little application with a MySQL database.

I want to secure my database.I think user name and password is not enough to protect it. Because anyone can access the database by copying database files in C:\ProgramData\MySQL\MySQL Server 5.6\data & paste it in another another machine.

So my question is: How do I secure my database properly?

share|improve this question
Possible duplicate :… – Abdul Manaf Jul 22 '13 at 6:52
Have you considered using WITH ENCRYPTION – user26196 Jul 22 '13 at 7:14
There is absolutely no way you can protect your database content if the user has physical access to the database server and files. – a_horse_with_no_name Jul 22 '13 at 7:38

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.