From 11ffa568945f0a05f08225e8e8c8c22b3e5fd32e Mon Sep 17 00:00:00 2001 From: tarunsaxenattn Date: Wed, 21 Dec 2022 20:31:11 +0530 Subject: [PATCH] Updated Error Troubleshooting steps --- README.md | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 27e7e4d..f2badf5 100644 --- a/README.md +++ b/README.md @@ -150,7 +150,7 @@ spring: datasource: driverClassName: com.mysql.jdbc.Driver - url: jdbc:mysql:///bootexample + url: jdbc:mysql:///bootexample?autoReconnect=true&useSSL=false username: password: @@ -164,6 +164,7 @@ hotel.service: name: 'test profile:' ``` + ### Then run is using the 'mysql' profile: ``` @@ -172,6 +173,22 @@ or mvn spring-boot:run -Drun.jvmArguments="-Dspring.profiles.active=mysql" ``` +### Troubleshooting + +- If the application is unable to connect with MySQL and throws below error + +``` +ERROR metabase.driver :: Failed to connect to database: java.sql.SQLException: Unable to load authentication plugin +``` + +### Solution + +Alter the user which is given to application by below command + +``` +ALTER USER ''@'%' IDENTIFIED WITH mysql_native_password BY ''; +``` + # Attaching to the app remotely from your IDE Run the service with these command line options: