GithubHelp home page GithubHelp logo

mysql-server-phpmyadmin-docker-compose's Introduction

mysql-server && PhpMyAdmin for Local Environnement with DOCKER

This docker-compose file can be used to deploy the mysql-server and phpmyadmin easily only on your machine without any installation or configuration. */!\ This is not for production /!*

Requirements :

Installation :

At first, you need to install docker and docker-compose.
Clone this repository on your machine, go to the folder : cd ~/mysql-server-phpmyadmin-docker-compose
Then, you can install the mysql server and phpmyadmin easily with the following command :

docker-compose up -d

mysql-server and phpmyadmin are now running on your machine.
phpmyadmin running on port 5050, you can visit it at http://localhost:5050.
You can access to the mysql-server with your terminal :

➜ docker ps
CONTAINER ID   IMAGE                   COMMAND                  CREATED         STATUS         PORTS                                    NAMES
b8943a71134f   phpmyadmin/phpmyadmin   "/docker-entrypoint.…"   3 minutes ago   Up 3 minutes   0.0.0.0:5050->80/tcp       mysql-server-phpmyadmin-docker-compose-phpmyadmin-1
1bcb7df4eabd   mysql:5.7               "docker-entrypoint.s…"   3 minutes ago   Up 3 minutes   3306/tcp, 33060/tcp, 0.0.0.0:3307->3307/tcp   mysql-server-phpmyadmin-docker-compose-db-1

Keep the CONTAINER ID of mysql:5.7 then run :

docker exec -it CONTAINER_ID mysql -u root -p

password : somepassword
You can change the value of the password directly in the file if you want. (You will need to restart the container).

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.