DB Connection FAILED: Attempted reconnect 3 times. Giving up

Hello Support team,

Can please provide a solution for following error. Same things are working with other machine(System).

I have also attached screenshot for reference.

Test Cases/Common/Test DB Connection FAILED because (of) (Stack trace: org.codehaus.groovy.runtime.InvokerInvocationException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connection to database server. Attempted reconnect 3 times. Giving up.

DB connection error.JPG