Error accesing a mysql db from Raspberry

Hi,
I have an error while setting up the acces of a database located in an Raspberry.
“dial tcp 10.0.2.173:3306: connectex: No connection could be made because the target machine actively refused it.”
Can you help me with this?
Thanks.