JDBC-idea import mysql to connect java jar package (mac)

JDBC-idea import mysql to connect java jar package (mac)

Preface

1. This article uses MySQL 8.0 version

Compared with version 5.0: the package import method is the same, but the registration driver method in the following code is different

1. The idea menus and icons of Mac and PC are not exactly the same, but the steps are similar

Download the corresponding version of the jar package

mysql 8.0 jar package download

Click the link above to download the jar package from the official website

After downloading, unzip it to get the jar package of this version

Put the jar package into a separate folder locally

I put this jar package into the myJAR folder and then import this folder directly into idea.

The advantage of this is that when you use other jar packages in the future, you can just put them in this folder without having to import them one by one.

Import the folder where the jar package is located into idea and open Project Structure

Import the jar package folder as Libraries

Create a new Module and "bind" the jar package in Modules



This is the end of this article about JDBC-idea importing mysql to connect to java jar package (mac). For more related idea importing mysql to connect to java jar package content, please search 123WORDPRESS.COM's previous articles or continue to browse the following related articles. I hope everyone will support 123WORDPRESS.COM in the future!

You may also be interested in:
  • How to connect to database in IDEA
  • Detailed explanation of how to connect to MySQL database using Java in IntelliJ IDEA
  • Five ways to use JDBC to connect to the database in Java (IDEA version)
  • Detailed steps to use IDEA to configure Tomcat and connect to MySQL database (JDBC)
  • Java-based MAC system IDEA connects to MYSQL database JDBC process

<<:  Analysis of the principles and usage of Docker container data volumes

>>:  Let's talk about the two functions of try catch in Javascript

Recommend

MySQL 5.7.23 installation and configuration graphic tutorial

This article records the detailed installation pr...

How to use less in WeChat applet (optimal method)

Preface I am used to writing less/sass, but now I...

Timeline implementation method based on ccs3

In web projects we often use the timeline control...

Secondary encapsulation of element el-table table (with table height adaptation)

Preface During my internship at the company, I us...

Linux system MySQL8.0.19 quick installation and configuration tutorial diagram

Table of contents 1. Environment Introduction 2. ...

How MySQL uses transactions

Basics A transaction is an atomic operation on a ...

Research on Web Page Size

<br />According to statistics, the average s...

Summary of some tips for bypassing nodejs code execution

Table of contents 1. child_process 2. Command exe...

Flex layout realizes left text overflow and omits right text adaptation

I want to achieve a situation where the width of ...

Learn javascript iterator

Table of contents Introduction What does an itera...

Vue implements the method example of tab routing switching component

Preface This article introduces the use of vue-ro...

Implementation of 2D and 3D transformation in CSS3

CSS3 implements 2D plane transformation and visua...

Five practical tips for web form design

1. Mobile selection of form text input: In the te...