Skip to content

OtpCode.Api service not Connecting to mysql db runing if both running in docker container #1

@realRajneesh

Description

@realRajneesh

hey @Matthew-Oduamafu

Thanks for sharing repository. I am having issue to connect OtpCode.Api to mysqldb, both running in docker container.

MySqlConnector.MySqlException (0x80004005): Unable to connect to any of the specified MySQL hosts.

connectionString is

"DbConnection":"server=mysql_db;port=3306;database=Otpdb;user=test;password=stronglikeHulk;CharSet=utf8;SslMode=Preferred;"

I have also added delay to connect mysql_db service so that it can initialize completely but no Luck!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions