jnyost
Aug 13 2002, 01:06 PM
I wish to control the size of databases for my clients. I don't want them to take advantage of buying a small package for disk space but then using a 500mb database. Any help would be appreciated...
tx
jared
EOC_Jason
Aug 13 2002, 02:00 PM
Well, if you have quota's on, and their directory is limited by the amount of space they can write to it, then I would move their mysql DB into their directory, use a symlink to it, and then it counts as their total space... However if they run out of room, it could potentially cause DB corruption or integrity problems...
I would just watch the directory now and then (or write an email script to send you nightly / weekly file size info on that dir) and if it gets out of hand contact the person...
instantnet
Dec 19 2005, 03:17 PM
The question is: How to code it? Would shell_exec (PHP) work?