Skip to content

Commit

Permalink
Update install documentation for java/mysql
Browse files Browse the repository at this point in the history
  • Loading branch information
ja-openai committed Sep 13, 2024
1 parent c3cf611 commit 5a062e3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions docs/_docs/guides/002-install_springboot3.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ permalink: /docs/guides/install-springboot3/

No binaries are available for the `Spring Boot 3` at the moment. It should be built from the `master` branch.

Assuming `Java 17` is installed, `./mvnw install -DskipTests` should be enough to build the `jar` files.
Assuming `Java 21` is installed, `./mvnw install -DskipTests` should be enough to build the `jar` files.

For detail instructions on development environment setup, [see here]({{ site.url }}/docs/guides/open-source-contributors/).

### Using Executable Jars

`Java 17` is required.
`Java 21` is required.

Run the Webapp with:

Expand Down Expand Up @@ -78,8 +78,8 @@ The port can be changed with the `server.port` property.

### MySQL

[Install MySQL 5.7](http://dev.mysql.com/doc/refman/5.7/en/installing.html) and then create a database for {{ site.mojito_green }}
(with Brew: `brew install mysql@5.7`).
[Install MySQL 8](https://dev.mysql.com/doc/mysql-installation-excerpt/8.0/en/) and then create a database for {{ site.mojito_green }}
(with Brew: `brew install mysql@8`).

Connect to MySQL DB as root user

Expand Down
16 changes: 8 additions & 8 deletions docs/_docs/guides/open-source-contributors.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ Ensure that you have added the `cask-versions` [tap](https://github.com/Homebrew
brew tap homebrew/cask-versions
```

Install `java 17` from `Temurin`:
Install `java 21` from `Temurin`:

```sh
brew install --cask temurin17
```

Check that `java 17` is now in use with `java -version`. If you need multiple versions of `java` consider using
Check that `java 21` is now in use with `java -version`. If you need multiple versions of `java` consider using
something like `jenv` (don't forget the plugins: `jenv enable-plugin maven` & `jenv enable-plugin export` ) or `sdkman`.

Install `maven` (latest version should be fine):
Expand All @@ -58,13 +58,13 @@ Note, to install the exact same `maven` version as the wrapper: `brew install ma

### Install on Unbutu 18.4 LTS

Install `java 17` from `OpenJDK`:
Install `java 21` from `OpenJDK`:

```sh
sudo apt-get install openjdk-17-jdk
sudo apt-get install openjdk-21-jdk
```
Check that `java 17` is now in use with `java -version`. If not you, can set it as default with
`sudo update-java-alternatives -s /usr/lib/jvm/java-1.17.0-openjdk-amd64` (To check the list
Check that `java 21` is now in use with `java -version`. If not you, can set it as default with
`sudo update-java-alternatives -s /usr/lib/jvm/java-1.21.0-openjdk-amd64` (To check the list
`sudo update-java-alternatives -l`). If you need multiple versions of `java`
consider using something like `jenv` or `sdkman`.

Expand Down Expand Up @@ -140,8 +140,8 @@ Run the following commands to create the databases. Change the user name, databa
CREATE USER 'mojito'@'localhost' IDENTIFIED BY 'mojito';
CREATE DATABASE IF NOT EXISTS mojito CHARACTER SET 'utf8mb4' COLLATE 'utf8mb4_bin';
CREATE DATABASE IF NOT EXISTS mojito_dev CHARACTER SET 'utf8mb4' COLLATE 'utf8mb4_bin';
GRANT ALL ON mojito.* TO 'mojito'@'localhost' IDENTIFIED BY 'mojito';
GRANT ALL ON mojito_dev.* TO 'mojito'@'localhost' IDENTIFIED BY 'mojito';
GRANT ALL PRIVILEGES ON mojito.* TO 'mojito'@'localhost';
GRANT ALL PRIVILEGES ON mojito_dev.* TO 'mojito'@'localhost';
FLUSH PRIVILEGES;
```

Expand Down

0 comments on commit 5a062e3

Please sign in to comment.