My problem turned out to be Empty password for MySql.
After setting password to my MySql instance, I ran into few other issues and the below settings helped me:
useSSL=false
allowPublicKeyRetrieval=tru
Empty password to MySql can cause this. Set password to your MySql and try again.
If you run into any issues use the below settings:
useSSL=false
allowPublicKeyRetrieval=true
I ran into similar issue with MySQL import. I checked my java version and tried with both JDK8 and JDK14, still the same problem.
I ran the command in command line and yet received the same error.
I then added verbose flags to the command which gave ...