Code Monkey home page Code Monkey logo

learn-mysql's Introduction

Learn MySQL

Basic Docker Compose file that will provide a mysql instance along with a web-based workbench tool in case you don't already have a db tool to connect to MySQL

Docker Instructions:

How to start all services

docker compose up -d

How to start just MySQL

docker compose up -d mysql

Connect with MySQL Workbench via Browser:

Note: I've noticed on my M1 Mac this hasn't worked as well which is why I included Cloudbeaver below.

  1. Start both services docker compose up -d mysql mysql-workbench
  2. In your browser go to localhost:13000
  3. You'll need to add the MySQL instance connection.
    • Host Name: mysql
    • user name: root
    • password: rootpassword
    • port: 13306

Connect with Cloudbeaver

Notes: Cloudbeaver is a web-based version of the very popular dbeaver. I preconfigured Cloudbeaver to connect to the MySQL database based on the docker compose committed, but you can see how the connection is configured.

  1. Start up MySQL and Cloudbeaver in docker docker compose up -d mysql cloudbeaver
  2. Open browser to localhost:18978
  3. Login info for Cloudbeaver -user name: cbadmin -password: cbadmin
  4. Connection info (already configured, but if curious)
    • Host Name/Address: mysql
    • user name: root
    • password: rootpassword
    • port: 13306

Connect with MySQL Workbench application

  1. In terminal run the following command: docker compose up -d mysql
  2. Open MySQL Workbench
  3. You'll need to add the MySQL instance connection.
    • Host Name/Address: mysql
    • user name: root
    • password: rootpassword
    • port: 13306

Notes:

Official MySQL tutorial -> https://dev.mysql.com/doc/mysql-tutorial-excerpt/8.0/en/

ANother great starting tutorial -> https://www.mysqltutorial.org

learn-mysql's People

Contributors

ronfurbish 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.