The MovieLens database in SQL
For easy importing to PostgreSQL, MySQL, SQLite, and others
Clone this repo:
git clone https://github.com/ankane/movielens.sql.git
cd movielens.sqlDownload the MovieLens 100k dataset, unzip, and run:
ruby generate.rb path/to/ml-100k > movielens.sqlThen import it into your database with one of the commands below.
createdb movielens
psql -d movielens < movielens.sqlmysqladmin create movielens
mysql -u root movielens < movielens.sqlsqlite3 movielens.sqlite3 < movielens.sql