Abcd Efg
Abcd Efg

Reputation: 2146

Reading Mysql DB Files Manually

I wonder if there is a way I can read mysql database files (*.MYI, *.MYD, *.frm) manually using something like a filestream? I can read these files but the content does not make sense, I don't know the content structure in here.

Regards

Upvotes: 1

Views: 2414

Answers (3)

Sergei Danielian
Sergei Danielian

Reputation: 5025

There is one more way to work with "raw" MyISAM tables: using "Embedded MySQL Server Library". Why? Because MySQL has an embedded server library, libmysqld, that contains the server in a form that can be linked (embedded) into applications.

BTW, there is a quite similar question on dba.stackexchange.com. You should read it.

Upvotes: 0

Sampo Sarrala
Sampo Sarrala

Reputation: 4888

Yes you can but it is not very clever to reinvent wheel...

See for example http://forge.mysql.com/wiki/MySQL_Internals_MyISAM

Upvotes: 0

v01d
v01d

Reputation: 1507

You can use this to create a parser that will help you read the file.s

Upvotes: 1

Related Questions