[ERROR] Unable connect to Mysql 5.7

First time user here, try to connect metabase to MySQL localhost and get this error.

06-29 11:55:37 ERROR api.database :: Cannot connect to Database
java.lang.Exception: Could not connect to address=(host=localhost)(port=3306)(type=master) : Could not connect to localhost:3306 : sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

Appreciate for the help.

Able to solve the problem after get help from colleage. Closed Case

How about posting the solution to help others who have the same error in the future?

1 Like

Likely the same workaround as with MySQL 8:
https://github.com/metabase/metabase/issues/12545

Could you please share your solution. Im facing the same error.