Skip to content
This repository has been archived by the owner on Sep 8, 2020. It is now read-only.

can you give me some example? #32

Closed
zhanghuid opened this issue Apr 9, 2018 · 1 comment
Closed

can you give me some example? #32

zhanghuid opened this issue Apr 9, 2018 · 1 comment

Comments

@zhanghuid
Copy link

i am work in window operate system.

how can i use navicat to connect the mysql?

thank you for your help.

@jaouadk
Copy link
Owner

jaouadk commented Apr 9, 2018

expose port 3306 to your system, then you'll be able to connect to mysql.

Edit your docker-compos.yml, then use 127.0.0.1 as the IP address, if it doesn't work, use docker's own IP.

mysql:
    image: mysql:5.7
    restart: unless-stopped
    ports:
        - "3306:3306"
    environment:
        MYSQL_ALLOW_EMPTY_PASSWORD: 'yes'
    volumes:
        - ~/volumes/mysql:/var/lib/mysql

Here is a fork that can help you setup also your folder mappings:

lfserrra@e2f1b85

@jaouadk jaouadk closed this as completed Apr 9, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants