MYSQL Connection Error : (2002) No route to hostt

I have setup the wordpress:5.1.1-php7.3 apache with Mysql:5.7
Linked them with mysql container name
PAT done
Still this error persists. I am new to this, still getting in grips with few functionalities of docker.
Appreciate any help , thank you.