Intro
I downloaded and extracted the OpenStreetMap Source File (See here). I have a 400GB XML-sourcefile now, and i would like to (1) insert the data in a MySQL Table OR (2) export this to an SQL file, doesn't matter.
What I already did / tried
- I have the XML File^^ and the MySQL Server (5.6.14)
- I found the tool Osmosis, to convert OSM data and I installed it
- I read this post: Read cities and streets into a database without api
- I also read this post: Is this config is capable to import complete osm planet file? (It is.)
- I tried to insert the data with osmosis, but it throws an error after a few seconds, or is doing nothing for hours, without inserting one single row. I also don't understand how this should work, because I don't have the OSM table structure in MySQL.
The Question
Is it generally possible to import the whole File in a Database / SQL-File, and if yes, how? Where do I find the table/database-structure? Has anyone already tried?
Thank you very much!