df -h
grep '1204' /var/log/mysql/error.log
SHOW TABLE STATUS LIKE 'yourtablename';
SHOW VARIABLES LIKE 'innodbdatafile_path';
SELECT tableschema AS `Database`, tablename AS `Table`, round(((datalength + indexlength) / 1024 / 1024), 2) `Size in MB` FROM informationschema.TABLES ORDER BY (datalength + index_length) DESC;
SELECT variablename, variablevalue FROM informationschema.globalstatus WHERE variablename IN ('Innodbdatawritten', 'Innodbdata_read');
SET GLOBAL innodbdatafile_path = 'ibdata1:12M:autoextend';
Note: Adjust the size (`12M`) according to your requirements.
(Perfect for DevOps & SREs)
(Perfect for DevOps & SREs)



