Lets say I would have my own web server with MySQL database hosted together with new website. What are the techniques that I can protect it and what are called the attack that can query my db ? Is that even possible ? What are the threats and against what should I got protected ?

up vote 2 down vote accepted
  1. Only allow connection from localhost if you dont require external connection to your db
  2. Use strong password
  3. Don't create application vulnerable to SQL injection

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.