Details
-
Type:
Task
-
Status: Open
-
Priority:
Minor
-
Resolution: Unresolved
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
Description
In MDEV-4628 and others MDEV related to wrong table engine, should be nice a tool that could read a file and show information about it
1) check if file is a FRM file
2) read information about it without mysql source code
3) read information using mysql source code
why (2) and (3) ? the 2 will read the file as a fileinfo program, the (3) will use the current mysqld source code and show how it read the file
it's a debug tool, and maybe we could put it online in mariadb.org a place where a user submit the .frm file and check the informations about that file
problems:
1) know the file format of all versions of FRM file -> for the (2) feature
2) know how mysqld read the FRM file -> for the (3) feature
3) what language? maybe c++ and c
4) if in a language different from mariadb.org we should create a webpage to upload the file, run the tool and send result back to user
Gliffy Diagrams
Attachments
Issue Links
- relates to
-
MDEV-4628 PARTITION - Problem with CONNECT/ARIA frm file - mariadb 10.0.x
-
- Closed
-
Activity
- All
- Comments
- Work Log
- History
- Activity
- Transitions
This is, actually, pretty easy.
Look in TABLE_SHARE::init_from_binary_frm_image() in 10.0.
All you need to do is to remove data structures that it creates, and
replace them with printf's. And you'll have a standalone frm parser.