问题原文
原帖链接 · Firechaser · CC BY-SA 3.0
I am trying to figure out how to set a limit of disk space for users in MySQL. What I want is, for example, administrator assign 1G disk space for user A, if A used up the 1G disk space, MySQL would not allow A insert anything. I googled this problem, and someone mentioned that it can be solved by using tablespace, but did not mention how. Any help is appreciated.
已采纳解答
原帖链接 · HBruijn · CC BY-SA 3.0
As far as I know there is no native MySQL disk quota support (and limiting disk usage for a database with hard quota sounds like a recipe for disaster).
You can report on disk usage though with the MySQL disk usage utility https://dev.mysql.com/doc/mysql-utilities/1.5/en/mysqldiskusage.html
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
