From 5a062e3a169f413d6fc5c7e169781208c7672018 Mon Sep 17 00:00:00 2001 From: Jean Aurambault Date: Thu, 12 Sep 2024 14:19:53 -0700 Subject: [PATCH] Update install documentation for java/mysql --- docs/_docs/guides/002-install_springboot3.md | 8 ++++---- docs/_docs/guides/open-source-contributors.md | 16 ++++++++-------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/docs/_docs/guides/002-install_springboot3.md b/docs/_docs/guides/002-install_springboot3.md index 3a0247b399..1e23124afb 100644 --- a/docs/_docs/guides/002-install_springboot3.md +++ b/docs/_docs/guides/002-install_springboot3.md @@ -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: @@ -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 diff --git a/docs/_docs/guides/open-source-contributors.md b/docs/_docs/guides/open-source-contributors.md index c8684c9f7c..c8038a297e 100644 --- a/docs/_docs/guides/open-source-contributors.md +++ b/docs/_docs/guides/open-source-contributors.md @@ -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): @@ -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`. @@ -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; ```