All Projects → ankane → Movielens.sql

ankane / Movielens.sql

The MovieLens database in SQL

Programming Languages

ruby
36898 projects - #4 most used programming language

MovieLens.sql

The MovieLens database in SQL

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

How to Use

Clone this repo:

git clone https://github.com/ankane/movielens.sql.git
cd movielens.sql

Download the MovieLens 100k dataset, unzip, and run:

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

Then import it into your database with one of the commands below.

PostgreSQL

createdb movielens
psql -d movielens < movielens.sql

MySQL

mysqladmin create movielens
mysql -u root movielens < movielens.sql

SQLite

sqlite3 movielens.sqlite3 < movielens.sql
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].