- MySQL Community Server: https://dev.mysql.com/get/Downloads/MySQL-8.4/mysql-8.4.7-winx64.msi
- MySQL Workbench: https://dev.mysql.com/get/Downloads/MySQLGUITools/mysql-workbench-community-8.0.45-winx64.msi
- MySQL Connector/J (JDBC Driver): https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-j-9.5.0.zip
- First, download & configure the server.
- Install the workbench
- Add the driver (steps below)
- Download the
MySQL Connector/Jfrom the link given above - Extract the files
- You will get a
.jarfile - Copy and paste the file to
C:\jdbc
- Open IntellijIdea
- Go to
File > Project Structure > Libraries - Click on +, and then on Java
- Locate the
.jarfile & click OK
- Syntax:
CREATE DATABASE <database_name>;