Networks-Learning / stackexchange-dump-to-postgres

Python scripts to import StackExchange data dump into Postgres DB.
MIT License
84 stars 29 forks source link

Unable to generate a SQL file #25

Open BakulTessell opened 2 years ago

BakulTessell commented 2 years ago

I just want to generate the SQL files from XML. Is that possible? I ran the below command.

$ python3 load_into_pg.py -t Badges  -f Badges.xml
This will drop the Badges table. Are you sure [y/n]?y
Error in dealing with the database.
pg.Error (None): None
could not connect to server: No such file or directory
    Is the server running locally and accepting
    connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?