[MDEV-4637] TOOLS - FRM file parser / file information Created: 2013-06-10 Updated: 2019-03-06 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | None |
| Fix Version/s: | None |
| Type: | Task | Priority: | Minor |
| Reporter: | roberto spadim | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 1 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||
| Description |
|
In 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: |
| Comments |
| Comment by Sergei Golubchik [ 2013-06-11 ] |
|
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 |
| Comment by roberto spadim [ 2013-06-12 ] |
|
nice! with time i will do this i want to do a currently server output, and a per version output to check what different versions report |
| Comment by Sergei Golubchik [ 2013-06-12 ] |
|
Hi, Roberto! You need to take the code from 10.0, but it will be able to parse old Regards, |
| Comment by roberto spadim [ 2013-06-12 ] |
|
nice, my idea is after any mysql/mariadb source code change for this function with that we have FRM fields in all 'old' versions of mysql/mariadb starting from the first version well for the first version, only current server values will do a nice job =) thanks, with time i implement this |