Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

This repository contains code samples for getting started with Java and MariaDB.

License

NotificationsYou must be signed in to change notification settings

mariadb-developers/java-quickstart

Repository files navigation

License

This repository contains examples on how to connect toMariaDB databases using a combination of different Java libraries and frameworks.

Before you run the examples

  1. Make sure you have a MariaDB Server (Enterprise orCommunity) running. If you don't have a MariaDB server running, you can easily run one usingDocker:
docker run --name mariadb --detach --publish 3306:3306 --env MARIADB_ROOT_PASSWORD='RootPassword123!' mariadb

Alternatively, you canDownload and install the server directly on your OS.

  1. Connect to the database using the MariaDB CLI client:
mariadb -h 127.0.0.1 -u root -p'RootPassword123!'

Alternatively, you can use any database client compatible with MariaDB.

  1. Prepare the database schema and user as follows:
CREATEDATABASEdemo;CREATEUSER 'user'@'%' IDENTIFIED BY'Password123!';GRANTSELECT, INSERT,UPDATE,DELETE, DROPON demo.* TO'user'@'%';CREATETABLEdemo.programming_language(pl_idINTPRIMARY KEY AUTO_INCREMENT,pl_nameVARCHAR(50)NOT NULL UNIQUE,pl_ratingINT);

JDBC & JPA

Spring Boot

  • Spring Boot Data JPA: Spring-based programming model for data access on top of JPA.
  • R2DBC ➚: Reactive database connectivity.
  • jOOQ: Type-safe SQL queries in Java.
  • MyBatis: Map SQL results to Java methods in a simple way.

Jakarta EE (Java EE)

Quarkus

(work in progress)

About

This repository contains code samples for getting started with Java and MariaDB.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors2

  •  
  •  

Languages


[8]ページ先頭

©2009-2025 Movatter.jp