Skip to content

Instantly share code, notes, and snippets.

@gubi
Last active December 23, 2018 15:50
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gubi/63f73a3074a4e85a5c33 to your computer and use it in GitHub Desktop.
Save gubi/63f73a3074a4e85a5c33 to your computer and use it in GitHub Desktop.
Mysql version from .frm file

From your terminal launch this command:

$>: hexdump -s 0x33 -n 2 -v -d <FILE_NAME>.frm  | awk '{ print "Mysql version " $2; exit }'

Example output: Mysql version 50530, which means version 5.5.30

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment