Code Monkey home page Code Monkey logo

mysql's Introduction

MYSQL INSTANCE

Contents:

  • Dockerfile
  • docker-compose.yml
  • .env

Dockerfile

You dont need to customise this file, you can if you want to use a custom mysql docker image

docker-compose.yml

To customise this file you can update the environment variables in the yaml file

environment:
  - MYSQL_ROOT_PASSWORD=password@1234
  - MYSQL_DATABASE=mysqllocal
  - MYSQL_USER=sqluser
  - MYSQL_PASSWORD=sqluserpass@1234

To run the docker image use the following command

  • Clone the repository
git clone [email protected]:ananyakaushik48/mysql.git
  • Change directory to target directory
cd mysql
  • Run the container locally with docker-compose (hope you have docker installed)
docker-compose up -d
  • To connect to the database from the command line (need to have mysql-client installed)
mysql -u root -p 'mysqllocal' -h 127.0.0.1 -P 3306 -D local

mysql's People

Contributors

ananyakaushik48 avatar

Watchers

 avatar

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.