I\'m trying to install mysql inside a docker container,Tried various images from github, it seems they all manage to successfully install the mysql but when I try to run the
In my case I tried to connect to DB (which was inside docker) like this:
mysql -ppass -u root
but got same error as OP.
Specifying host and port helped:
mysql --host 0.0.0.0 --port 3306 -ppass -u root