Code Monkey home page Code Monkey logo

Comments (4)

cpuguy83 avatar cpuguy83 commented on June 8, 2024

How did you start the mysql container?

The run command above is not using the 192.168.59.103 address, it's using the actual container's address since this is what --link provides.

from official-images.

zhaozhiming avatar zhaozhiming commented on June 8, 2024

I use this command to start mysql container, I start the container in the boot2docker, which like as vagrant and it's a vm with ip 192.168.59.103.

docker run --name some-mysql -e MYSQL_ROOT_PASSWORD=mysecretpassword -d mysql

I think I know the reason now, maybe it's the root user don't have the remote access, but I don't know how to change the my.conf.

Finally I use the tutum/mysql, it's can generate a admin user make me can remote access and I don't need change anything.

from official-images.

cpuguy83 avatar cpuguy83 commented on June 8, 2024

If you want to be able to access it from OS X, you need to either the publish port 3306 of the container to a host port or setup a static route on OS X to the container network on boot2docker.

from official-images.

zhaozhiming avatar zhaozhiming commented on June 8, 2024

ok, thanks.

from official-images.

Related Issues (20)

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.