Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

Is it possible to limit mySQL database size for a particular package (created via whm)? So we can offer a kind of trial hosting account. Trial should obviously have catches or we won't really earn. I have seen companies using that trick.

share|improve this question

MySQL doesn't have native support for quotas. You could use conventional file system quotas and chown the respective DB files in /var/lib/mysql.

Or you could write a trigger that does some calc on the fly, but either way, its a good road to DB corruption.

share|improve this answer

Your Answer


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

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