The MovieLens database in SQL
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
generate.rb
movielens.sql

README.md

MovieLens.sql

The MovieLens database in SQL

For easy importing to PostgreSQL, MySQL, SQLite, and others

How to Use

Create a new database and run movielens.sql

PostgreSQL

wget https://raw.githubusercontent.com/ankane/movielens.sql/master/movielens.sql
createdb movielens
psql -d movielens < movielens.sql

MySQL

wget https://raw.githubusercontent.com/ankane/movielens.sql/master/movielens.sql
mysql -e 'create database movielens;'
mysql -u root movielens < movielens.sql

SQLite

wget https://raw.githubusercontent.com/ankane/movielens.sql/master/movielens.sql
sqlite3 movielens.sqlite3 < movielens.sql

How to Generate

Download a MovieLens data set and run

ruby generate.rb path/to/ml-100k > movielens.sql