I don't know of any built-in MySQL function to limit database size, the method I've used in the past is as you mention - create a db, set owner + group for the user concerned, then specify the file quota. Works well, the same way disk quotas for home drives work. When the db reaches it limits, it stops any further data adding, which can be a bugger depending on what your end users are utilising the database for!
|