Open the official MySQL website:
https://dev.mysql.com/downloads/installer/
Download:
mysql-installer-community
| Version | Description |
|---|---|
| Web Installer | Small download, downloads components during install |
| Full Installer | Large download, includes everything |
Double-click the installer and choose Setup Type.
| Option | Description |
|---|---|
| Developer Default | Installs MySQL Server + Workbench + Tools |
| Server Only | Only database server |
| Client Only | Only client tools |
| Custom | Manual component selection |
Recommended: Developer Default
Click Execute to install missing requirements.
Click:
Execute
Components installed:
Application
|
| JDBC
v
+-------------+
| MySQL DB |
| Port 3306 |
+-------------+
mysql -u root -p SHOW DATABASES;
CREATE DATABASE springboot_db; USE springboot_db;
spring.datasource.url=jdbc:mysql://localhost:3306/springboot_db spring.datasource.username=root spring.datasource.password=root123 spring.jpa.hibernate.ddl-auto=update spring.jpa.show-sql=true
https://www.oracle.com/database/technologies/xe-downloads.html
setup.exe
C:\app\oracle\product\21c\dbhomeXE
| Service | Port |
|---|---|
| Listener | 1521 |
| EM Express | 5500 |
Spring Boot App
|
| JDBC
v
+----------------+
| Oracle DB XE |
| Port 1521 |
+----------------+
CREATE USER springuser IDENTIFIED BY spring123; GRANT CONNECT, RESOURCE TO springuser;
spring.datasource.url=jdbc:oracle:thin:@localhost:1521/XEPDB1 spring.datasource.username=springuser spring.datasource.password=spring123 spring.jpa.database-platform=org.hibernate.dialect.Oracle12cDialect