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

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

1 Answer 1

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.