Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
At the file system level, you can check the size, and upon reaching a certain threshold, issue a notification to the user and restrict certain operations.
SELECT SUM(DATA_LENGTH + INDEX_LENGTH) FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='users_db'
mysql does not limit the size of the user's database.
The way out is to limit the disk space allocated to a particular database.
For example, a database users_db will be created for a user . You need to create a directory in /var/lib/mysql/users_db and mount the file system of the required size there.
If the file system is xfs, then you can simply install quota directly on the directory with the user base.
file system of the required size is not necessary - you can simply set a quota.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question