MYI

application/x-mysql-misam-compressed-index

Safe

Magic Bytes

Offset: 0
FE FE 06

The MYI file format is the index component of the MyISAM storage engine, originally developed by MySQL AB and now maintained by Oracle Corporation. These files store the index tree for a database table, allowing for rapid data retrieval and optimized search operations within MySQL and MariaDB environments. As a legacy component of the MyISAM engine, MYI files are generally considered safe; however, they lack transactional support and are susceptible to corruption if the database server terminates unexpectedly.

Extension

.myi

MIME Type

application/x-mysql-misam-compressed-index

Byte Offset

0

Risk Level

Safe

Validation Code

How to validate .myi files in Python

Python
def is_myi(file_path: str) -> bool:
    """Check if file is a valid MYI by magic bytes."""
    signature = bytes([0xFE, 0xFE, 0x06])
    with open(file_path, "rb") as f:
        return f.read(3) == signature

How to validate .myi files in Node.js

Node.js
function isMYI(buffer: Buffer): boolean {
  const signature = Buffer.from([0xFE, 0xFE, 0x06]);
  return buffer.subarray(0, 3).equals(signature);
}
Go
func IsMYI(data []byte) bool {
    signature := []byte{0xFE, 0xFE, 0x06}
    if len(data) < 3 {
        return false
    }
    return bytes.Equal(data[:3], signature)
}

API Endpoint

GET /api/v1/myi
curl https://filesignature.org/api/v1/myi

Related Formats