python - How do i import imdb list files into postgresql database? -



python - How do i import imdb list files into postgresql database? -

i doing school project utilizing imdb database (purely educational purposes)

unfortunately cannot utilize imdbpy2sql.py scheme unix , doesn't seem have python built in.

i also:

cannot utilize root (apparently attempting run sudo command plenty 1 in trouble, learned hard way).

have been unable outdated moviedb tools work.

there 2gb storage limit on server 1500 file count limit.

only need subset of tables (ie actors, actresses, directors, etc. though having info not huge problem).

i have remote access server.

my question (having taken account) easiest way import data? quite literally @ stand still this.

any help appreciated.

one alternative run imdbpy2sql.py on different machine, dump sql database , load server. i'm going assume database called "imdbdata". after that, run command:

pg_dump imdbdata > imdbdata.pgdump

then, re-create file onto server , run command there load info database:

psql imdbdata < imdbdata.pgdump

more info can found @ pg_dump page in postgresql docs.

python database postgresql unix import

Comments

Popular posts from this blog

xslt - DocBook 5 to PDF transform failing with error: "fo:flow" is missing child elements. Required content model: marker* -

mediawiki - How do I insert tables inside infoboxes on Wikia pages? -

Local Service User Logged into Windows -