How do i import imdb list files into mysql database on windows? -


am using mysql, imdbpy(to import data). have never used imdbpy before , have no idea of how python script works.here list of text files gonna use few import database. ftp://ftp.fu-berlin.de/pub/misc/movies/database/

here link of imdbpy link trying follow. http://imdbpy.sourceforge.net/docs/readme.sqldb.txt

i quite don't understand part :

*create database named "imdb" (or whatever like), using tool provided database; example, mysql use 'mysqladmin' command: # mysqladmin -p create imdb postgresql, have use "createdb" command: # createdb -w imdb

to create tables , populate database, must run imdbpy2sql.py script: # imdbpy2sql.py -d /dir/with/plaintextdatafiles/ -u 'uri'

where 'uri' argument string representing connection database, schema: scheme://[user[:password]@]host[:port]/database[?parameters]*

how run imdbpy2sql.py script?

assuming have python installed, run "imdbpy2sql.py -d /dir/with/plaintextdatafiles/ -u 'uri'" command prompt.

note: command prompt need 'sitting' in directory imdbpy2sql.py exists or need predicate imdbpy2sql.py full directory path.


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -