sql 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #------------------------------------------------------------------------------
  2. # sql: file(1) magic for SQL files
  3. #
  4. # From: "Marty Leisner" <mleisner@eng.mc.xerox.com>
  5. # Recognize some MySQL files.
  6. #
  7. 0 beshort 0xfe01 MySQL table definition file
  8. >2 byte x Version %d
  9. 0 belong&0xffffff00 0xfefe0300 MySQL MISAM index file
  10. >3 byte x Version %d
  11. 0 belong&0xffffff00 0xfefe0700 MySQL MISAM compressed data file
  12. >3 byte x Version %d
  13. 0 belong&0xffffff00 0xfefe0500 MySQL ISAM index file
  14. >3 byte x Version %d
  15. 0 belong&0xffffff00 0xfefe0600 MySQL ISAM compressed data file
  16. >3 byte x Version %d
  17. 0 string \376bin MySQL replication log
  18. #------------------------------------------------------------------------------
  19. # iRiver H Series database file
  20. # From Ken Guest <ken@linux.ie>
  21. # As observed from iRivNavi.iDB and unencoded firmware
  22. #
  23. 0 string iRivDB iRiver Database file
  24. >11 string >\0 Version %s
  25. >39 string iHP-100 [H Series]
  26. #------------------------------------------------------------------------------
  27. # SQLite database files
  28. # Ken Guest <ken@linux.ie>, Ty Sarna, Zack Weinberg
  29. #
  30. # Version 1 used GDBM internally; its files cannot be distinguished
  31. # from other GDBM files.
  32. #
  33. # Version 2 used this format:
  34. 0 string **\ This\ file\ contains\ an\ SQLite SQLite 2.x database
  35. # Version 3 of SQLite allows applications to embed their own "user version"
  36. # number in the database. Detect this and distinguish those files.
  37. 0 string SQLite\ format\ 3
  38. >60 string _MTN Monotone source repository
  39. >60 belong !0 SQLite 3.x database, user version %u
  40. >60 belong 0 SQLite 3.x database