Maven MySQL(8.0.31) MacOS Access Denied 'root'@'localhost'

I can connect through application, console with same credentials. Can someone help what is the issue, really tired debugging without any progress.

Using

  • Maven MySQL(8.0.31) MacOS Access Denied ‘root’@‘localhost’
  • org.liquibase liquibase-core 4.7.0 mysql mysql-connector-java 8.0.30

Starting Liquibase at 12:20:23 (version 4.11.0 #2708 built at 2022-05-23 15:17+0000)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.865 s
[INFO] Finished at: 2022-12-24T12:20:23+05:30
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.liquibase:liquibase-maven-plugin:4.11.0:status (default-cli) on project db-network-lqbs:
[ERROR] Error setting up or running Liquibase:
[ERROR] liquibase.exception.DatabaseException: liquibase.exception.DatabaseException: liquibase.exception.DatabaseException: Connection could not be created to jdbc:mysql://localhost:3306/xi55_network?createDatabaseIfNotExist=true&allowMultiQueries=true with driver com.mysql.cj.jdbc.Driver. Access denied for user ‘root’@‘localhost’ (using password: YES)
[ERROR] → [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] MojoExecutionException - Apache Maven - Apache Software Foundation
madan@Madans-MacBook-Pro db-network-lqbs %

Madan KN