Installing MySQL in Docker fails with error message "Can't connect to local MySQL server through socket" -
i'm trying install mysql inside docker container,tried various images github, seems manage install mysql when try run mysql gives error:
error 2002 (hy000): can't connect local mysql server through socket '/var/run/mysqld/mysqld.sock'
system specifications:
- ubuntu 12,04 on aws
- docker 0.10.0
packages tried far:
remember need connect running docker container. want use tcp instead of unix socket. check output of docker ps
command , running mysql containers. if find 1 use mysql command this: mysql -h 127.0.0.1 -p <mysql_port>
(you find port in docker ps
output). if can't find running mysql container in docker ps
output try docker images
find mysql image name , try run it: docker run -d -p 3306:3306 tutum/mysql
"tutum/mysql" image name found in docker images
.
Comments
Post a Comment