Accessing remote mysql server from docker flask app

sqlalchemy.exc.OperationalError: (pymysql.err.OperationalError) (1045, “Access denied for user ‘xxxxx’@' (using password: YES)”)
I getting above error when try to access remote mysql from dockered flask app. Without docker i can access mysql from flask app

Maybe user 'xxxxx'@'' is not in the grant table and you have to update the privileges. If it’s something else we definitely need more information to answer your question.

Hi tekki,
Thanks for your reply.
I feel this problem related to docker. Because i can access mysql from MySQL Workbench, from Terminal and from flask app with out docker.