Issue
-
MySQL is returning error: Authentication plugin 'mysql_clear_password' cannot be loaded: plugin not enabled
-
[INFO] Testing connection
-
[ERROR] Cannot connect to the database
-
Solution
-
Solve by setting environment variable:
-
Unix:
export LIBMYSQL_ENABLE_CLEARTEXT_PLUGIN=1 -
Windows:
set LIBMYSQL_ENABLE_CLEARTEXT_PLUGIN=1
-
-
For more information, refer to: MySQL Bugs: #69587: PAM auth: 'mysql_clear_password' cannot be loaded: plugin not enabled