EI-01
EI-01

Reputation: 1095

Unable to connect to MYSQL container with sequel pro client

i am a newbie to docker and have bee struggling to connect to the docker container with sequel pro. I downloaded the image docker pull mysql/mysql-server:latest. And executed the command to run a container:

docker run --name mysql-server -v /User/path/data:/var/lib/mysql -p 3306:3306 -e MYSQL_ROOT_PASSWORD=root mysql/mysql-server:latest.

Now i am attempting to connect mysql client i.e sequel pro to the docker container that runs mysql but i get the following response below: enter image description here

I followed tutorials on youtube and also documentation from docker but i do not know why i keep getting this.

Upvotes: 1

Views: 2431

Answers (2)

Backspace
Backspace

Reputation: 71

I've experienced the same problem.

Running: $ docker ps

Gave the response: PORTS 0.0.0.0:3306->3306/tcp mysql-server

Which told me to use '0.0.0.0' as host IP.

Hope this helps.

Upvotes: 4

Bukharov Sergey
Bukharov Sergey

Reputation: 10185

The problem here: -e MYSQL_ROOT_PASSSWORD=root in SSS. Just remove one of S

Upvotes: 1

Related Questions