Giter VIP home page Giter VIP logo

204321-database-systems's Introduction

What is this repository about?

This is a Git repository used for materials related to my CSCMU course: 204321, Database Systems. In the beginning, this was supposed to be used on my own. Then I found it to be useful for all of my colleagues, so I decided to open this repository to the public. Feel free to send me pull requests if I made some mistakes.

Contents

MySQL Docker Server

This is a Docker compose application that let you run MySQL, Phpmyadmin, and Jupyter Lab, with no or few configurations.

For Jupyter Lab, this is a complement tool to do the practices more easily.

Setup

  1. Download and install Docker.
  2. Make sure to switch to directory mysql-docker-server. The root directory of this repository may be occupied for other purposes in the future.
  3. Run docker compose up -d to start the server.

That's all. Simple, isn't it?

At first, it takes some time to install related dependencies, but it will take much slower later.

To shutdown the server, run docker compose down in the same directory as before.

How to use?

Phpmyadmin

Start the server and browse http://localhost:8080 on a web browser.

You will notice that the database CompanyElmasri has been already imported.

Screenshot for Phpmyadmin

Jupyter Lab (Doing the practice)

Start the server and browse http://localhost:8888 on a web browser.

On the left pane, there will be the only file named exercise.ipynb. This file provides the answers for all the 26 problems.

In case you want to get your modified file, it is located in mysql-docker-server/sql-notebooks.

Don't forget to save the file before exit Jupyter Lab.

Screenshot for Jupyter Lab

Probable FAQs

Nobody has asked me yet, so I guess my own set of Q&A's.

  1. How can I connect to MySQL using Jupyter Lab?
    Read the practice notebook.

  2. How can I reset the database to the default state?
    There may be a moment that you will modify the database (i.e. using DELETE, INSERT, UPDATE). Just run:

cd mysql-docker-server
rm -r data-volume

MongoDB Docker Server

This is a Docker compose application that let you run MongoDB and MongoDB Express with no or few configurations.

For Jupyter Lab, this is a complement tool to do the practices more easily.

Setup

  1. Download and install Docker.
  2. Make sure to switch to directory mongodb-docker-server. The root directory of this repository may be occupied for other purposes in the future.
  3. Run docker compose up -d to start the server.

That's all. Simple, isn't it?

At first, it takes some time to install related dependencies, but it will take much slower later.

To shutdown the server, run docker compose down in the same directory as before.

How to use?

Phpmyadmin

Start the server and browse http://localhost:8080 on a web browser.

You will notice that the database CompanyElmasri has been already imported.

Screenshot for Phpmyadmin

Jupyter Lab (Doing the practice)

Start the server and browse http://localhost:8888 on a web browser.

On the left pane, there will be the only file named exercise.ipynb. This file provides the answers for all the 26 problems.

In case you want to get your modified file, it is located in mongodb-docker-server/sql-notebooks.

Don't forget to save the file before exit Jupyter Lab.

Screenshot for Jupyter Lab

204321-database-systems's People

Contributors

dward2nd avatar

Watchers

 avatar

Forkers

mahafit

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.