Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 158 Stack Exchange communities.

What is meta?
Here's how it works:
  1. Any Stack Exchange user can ask a question
  2. The community provides support, votes on ideas, and reports bugs
  3. Your voice helps shape the way Stack Exchange operates

I downloaded the Stack Overflow data dump for the last month. It has six files, with names like,, etc. I tried to open one of them with Notepad++, it showed a pile of binary data, suggesting that it might be a dump. Now, how do I import it into MySQL?

Is the dump already in format Insert into table values (), or is it just the data in some space separated or CSV format, that has to be loaded? Plus any idea about the table schemas? The Meta Stack Overflow post Database schema documentation for the public data dump and Data Explorer gives you an idea about the nature of the data the tables contain, but it doesn't tell you about the schema.

share|improve this question
Where did you download the data ? Can you pls provide me the link ? – user195022 Sep 4 '12 at 15:33…. You will find the link 2 or 3 answers down. – AttitudeMonger Sep 4 '12 at 19:06
You might find the following project helpful: It is based upon JPA and you should be able to import the XML dumps to any relational database. – user152468 Jul 11 '14 at 20:02
If you are importing to MySQL you might want to use the following SQL script: – Georgios Gousios Jul 17 '14 at 12:04
up vote 7 down vote accepted

The post you link to, Database schema documentation for the public data dump and SEDE, is the schema; so yes it does contain the schema. You can get column sizes from the Data Explorer if you want.

You might find Scripts to convert data-dump to other formats helpful.

The fact that the files are .001, .002, etc. would imply that it's been split. Probably using 7-Zip's split functionality. You can either use 7-Zip to recombine them or use another tool such as HJSplit.

share|improve this answer
By schema I meant the table structure, structure of the columns. This post only describes what each column represents, for example, name of the voter, his id, etc, whereas I want to know whether that column is of type char(50) or varchar(100). – AttitudeMonger Sep 1 '12 at 8:32
@Cupidvogel Ben already answered this, you can get the column types & sizes from Data Explorer. – Yannis Sep 1 '12 at 8:43

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .