laraedit/laraedit-docker

CLI access to MySQL

Closed this issue · 7 comments

I am trying to access MySQL from the docker instance (via docker-machine ssh)

When attempting to access MySQL it doesn't find 'mysql-

$ mysql -u -p

try mysql -u root as mysql -u -p assumes the username is -p

What I meant to say is that using MySQL it doesn't recognize command.

$ mysql ...
Not a command

What commands are you typing to get into the container? I would need to replicate the issue in order to troubleshoot it.

Any info you have would help.

From my end, it's working fine on OS X, Ubuntu 16.04, and Windows 10; each using both Kitematic and the Docker CLI.

@ibourgeois I dont have access to my computer at the moment. How are YOU calling it on your end?

If you are on Win/OSX, connect to the Docker machine first...

docker-machine ssh default

and then run:

docker exec -it laraedit bash

just replace laraedit with whatever you've named your container.

laraedit-mysql

I'm running docker beta on OS X, mysql-client works just fine. This issue can be closed.