Skip to content

ankane/movielens.sql

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
November 29, 2019 04:29
October 8, 2014 00:46

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

About

The MovieLens database in SQL

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages