Take the 2-minute tour ×
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. It's 100% free, no registration required.

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 : dba.stackexchange.com/questions/30342/… –  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.