I am unable to connect my Sequel Pro to my docker mysql container. I keep getting the following error message:
I have a docker-compose.yml ;
db:
image: mysql:5.7
ports:
- "33071:3306"
command: --default-authentication-plugin=mysql_native_password
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=default
volumes:
- ./dump:/docker-entrypoint-initdb.d
- ./db/mysqlconf:/etc/mysql/conf.d
- ./mysqldata:/var/lib/mysql
phpmyadmin:
image: phpmyadmin/phpmyadmin
ports:
- "8677:80"
links:
- db
I have read multiple forum answers on this but none of them helps. The most relevant is this link but this seems to relate to the mysql on the mac as opposed to a docker container. He talks of editing the my.cnf file located in /etc/my.cnf. on Unix/Linux.
However my docker container does not have a my.cnf file.
So I am not sure what to do. I used the following settings for Sequel Pro connection:
Host: 127.0.0.1
Username: root
Password: root
Database: (left it blank)
Port: 3306