It's possible to limit (by PHP code) the size of a table ? E.g. My table users cannot contain more than 10 Mbyte.
It is possible to insert a little PHP script that verify the table (users) size and allows or not other INSERT ?
Thanks
Sory for my english
Limit MySql table size
Moderator: General Moderators
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
well.. here's how phpMyAdmin does it:it then combines the data_length and index_length fields for the byte size used.
Code: Select all
SHOW TABLE STATUS LIKE 'table_name'