1개 답변
- 최신
- 최다 투표
- 가장 많은 댓글
0
Some follow-up questions:
- Are you trying to connect to an existing mariaDB instance from a docker is your db running on another docker?
- When you run the
mysql -h (IP for mariadb) -u (user) -p (password) databasename
, is the connection successful or are there any error logs?
답변함 일 년 전
- The MariaDB is completely separated from AWS. I am just trying to access it through the AWS Lightsail instance.
- I was able to access it inside docker when I specified --tcp protocol. I am not sure how to achieve the same using docker-compose file. What is the format of it? Thanks