I thought it may be relate to that but I have pod and the database in same namespace. I have the configmap in the same namespace as well.
do you have a service exposing your database?
yes I do create a ClusterIP service for the mysql database. I really don’t know what is going on.