This repo is a MySQL Instagram Dataset clone and includes some Challenges to play with the data.
Credits: I learned this at The Ultimate MySQL Bootcamp at Udemy.
- Download MySQL 8 Software. I recommend you to select legacy when the download prompt ask you for connector as it will later allow you to use things like Node.js which as of today isn't supported with standard connector.
- Download MySQL 8 Workbench.
- Start MySQL Server & Open MySQL Workbench
- Run
run.sql
viaFile => Run SQL Script
File => Open SQL Script
and openuse.sql
and execute it. Now we are usinginstagram_clone_db
schema.File => Open SQL Script
and openset_sql_mode.sql
and execute it to avoid SQL Error 1055.- Create these below queries with
File => New Query Tab
(or, use MySQL Workbench UI for the same)SELECT * FROM users;
SELECT * FROM photos;
SELECT * FROM comments;
SELECT * FROM likes;
SELECT * FROM follows;
SELECT * FROM tags;
SELECT * FROM photo_tags;
Now you have all the data to play with! Use challenges
folder to play with some 🙌 🔥
- Start MySQL Server.
- Start MySQL Workbench.
File => Open SQL Script
and openuse.sql
and execute it. Now we are usinginstagram_clone_db
schema.- Create these below queries with
File => New Query Tab
(or, use MySQL Workbench UI for the same)SELECT * FROM users;
SELECT * FROM photos;
SELECT * FROM comments;
SELECT * FROM likes;
SELECT * FROM follows;
SELECT * FROM tags;
SELECT * FROM photo_tags;
Now you have all the data to play with! Use challenges
folder to play with some 🙌 🔥