Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 18 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ spring:

datasource:
driverClassName: com.mysql.jdbc.Driver
url: jdbc:mysql://<your_mysql_host_or_ip>/bootexample
url: jdbc:mysql://<your_mysql_host_or_ip>/bootexample?autoReconnect=true&useSSL=false
username: <your_mysql_username>
password: <your_mysql_password>

Expand All @@ -164,6 +164,7 @@ hotel.service:
name: 'test profile:'
```


### Then run is using the 'mysql' profile:

```
Expand All @@ -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 '<your application user>'@'%' IDENTIFIED WITH mysql_native_password BY '<Your application user password>';
```

# Attaching to the app remotely from your IDE

Run the service with these command line options:
Expand Down