Not the answer you need?
Register and ask your own question!

Percona 5.6 Dockerfile, automatic creation of databases

holalaholala EntrantCurrent User Role Novice
Hello,

I'm trying to provision docker image based on percona 5.6:
FROM percona:5.6
ENV MYSQL_ROOT_PASSWORD=root ...
RUN mysql -e "CREATE USER [email protected]'127.0.0.1' IDENTIFIED BY 'integration';" Unfortunately, it produces:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) [0mThe command '/bin/sh -c mysql -e "CREATE USER [email protected]'127.0.0.1' IDENTIFIED BY 'integration';"' returned a non-zero code: 1
Same effect with mysql -h 127.0.0.1

Would appreciate help.
Sign In or Register to comment.

MySQL, InnoDB, MariaDB and MongoDB are trademarks of their respective owners.
Copyright ©2005 - 2020 Percona LLC. All rights reserved.