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: