
We often receive this question about the ibdatafile in MySQL at Percona Support. The panic starts when the monitoring server sends an alert about the storage of the MySQL server – saying that the disk is about to get filled. After some research, you realize that most of the disk space is used by. Could somebody enlighten me and tell me what is exactly stored in the ibdatafile on an instance where the file_per_table global variable is active and all tables have been made after this variable became active.
So, if you have a big database. The system tablespace can have one or more data files. By default, a single system tablespace data file, named ibdata, is created in the data directory. The size and number of system tablespace data files is defined by the innodb_data_file_path startup option.
But you can configure MySQL so that each table, including its indexes, is stored as a separate file. In that way ibdatawill not grow as large. InnoDB: Error: space header page.
Both of them are correct. In particular there is a number associated with each. Hence, one cannot copy. How to reduce size of ibdatafile in MySQL. Remove the ibdatafile.
Start the mysqld process. It will now recreate the ibdatatable space since it recognizes that it is missing. Import the sql dump from step and you are back again.





