Nicholas $ mysql -h localhost -P 3306 -protocol=tcp -u root -p Yet that's not happening, I'm getting the host's database: nicholas $ Root $ docker inspect mysql | grep passwordĪnd so I was expecting that by specifying tcp for localhost from the host I'd be able to connect to the docker container. Which is virgin, not having user user configured on the container. Root $ docker exec -ti -user root mysql bash I'm trying that explicit IP address because: root $Īlthough I'm also getting the same result for localhost in that I'm still logging into the host instance of MySQL rather than the container. Type '\c' to clear the current input statement. Other names may be trademarks of their respective Oracle is a registered trademark of Oracle Corporation and/or itsĪffiliates. Server version: 8.0.21 MySQL Community Server - GPLĬopyright (c) 2000, 2020, Oracle and/or its affiliates. Trying to login to the container, but getting the host MySQL instance: nicholas $ Starting up the default mysql server: root $
0 Comments
Leave a Reply. |