summaryrefslogtreecommitdiff
path: root/database/jdbc/demo/README
blob: 34d2481d69cbbf47b089e87b44af9c085e1dd399 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Create a Maven project.
  - Update Maven archetype catalog
  - Specify quickstart archetype
  - Update Java version to 25

Add MariaDB JDBC driver to pom.xml

Search Google and get JDBC sample code.

Update your App class code with Google returned sample code. Adjust the import statements.

Specify your MariaDB database connection details in the class.

Adjust the SQL quiery.

Adjust the results printing code to match with your database table columns.

Run the App class.