A simple JDBC code in Java is giving an exception while connecting to MySQL DB:
Java Access denied for user \'root\'@\'localhost\'
Java version: 8 MySQL versio