- Hands-On Full Stack Development with Spring Boot 2 and React(Second Edition)
- Juha Hinkula
- 204字
- 2021-06-24 14:03:26
Installing MariaDB
In Chapter 3, Using JPA to Create and Access a Database, we are going to use MariaDB, so you will need to install it locally on your computer. MariaDB is a widely used open source relational database. MariaDB is available for Windows and Linux, and you can download the latest stable version from https://downloads.mariadb.org/. MariaDB is developed under a GNU GPLv2 license.
For Windows, there is the MSI installer, which we will use here. Download the installer and execute it. Install all features from the installation wizard:
![](https://epubservercos.yuewen.com/8C9A01/19470378701489706/epubprivate/OEBPS/Images/175af811-1f25-4686-a07a-13903f9d7c13.png?sign=1739521909-3rDEN6Bak20r4CkosX9M2WnUFsfjg8PY-0-85a724b895beaa36f98a639ccd955d3d)
In the next step, you should give the password for the root user. This password is needed in the next chapter, when we'll connect our application to the database:
![](https://epubservercos.yuewen.com/8C9A01/19470378701489706/epubprivate/OEBPS/Images/b6915a5d-e37d-4505-9e47-5471c7bd8897.png?sign=1739521909-10M9usJNMFv2BNpuM8AKQok8TdThInEE-0-f41686bb70fd339f13248a2f562c0f48)
In the next phase, we can use the default settings:
![](https://epubservercos.yuewen.com/8C9A01/19470378701489706/epubprivate/OEBPS/Images/f0643e9d-80c7-43b5-8c10-200281577f13.png?sign=1739521909-pPAZEwFTUj0vEZj76hNqkSwRkfwqUqLa-0-4ed58667f9272ba943977c588c75635b)
Now the installation will start, and MariaDB will be installed on your local computer. The installation wizard will install HeidiSQL for us. This is a graphically easy-to-use database client. We will use this to add a new database and make queries to our database. You can also use the Command Prompt included in the installation package:
![](https://epubservercos.yuewen.com/8C9A01/19470378701489706/epubprivate/OEBPS/Images/12e7c2ca-579f-4d24-be02-b73a53090959.png?sign=1739521909-g44l2d6WbIYMstYdk2ErJ0PYa3FWcqhg-0-5ea21dfa55236c847be18f0a6259822b)
Now, we have everything that is needed to start the implementation of the backend.