Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Integrated Database for my JavaSE Application

Tags:

java

database

I don't know if its right place to ask this question or not, but I am asking here.

What I have tried till now :

In all my projects in JavaSE (Swings, JavaFX) etc I have used MySQL, Oracle, MS SQL Server for my backend.

But for any of these I need to install an individual software like MySQL server etc.

I was wondering if it is possible to get some alternative of this thing so that I don't need to install any extra individual software for database.

Database should be integrated within my JavaSE Application, like we see in normal softwares. We just install the software not the individual DBMS for it.

Such a database that allows me to take backup.

Any Suggestions for this ?

like image 450
gprathour Avatar asked Feb 28 '12 07:02

gprathour


People also ask

Can Java be connected to a database?

Example to Connect Java Application with mysql database In this example, sonoo is the database name, root is the username and password both. The above example will fetch all the records of emp table. To connect java application with the mysql database, mysqlconnector.jar file is required to be loaded.


1 Answers

You can use

  1. Apache Derby
  2. SQLite
  3. HSQLDB

as portable database for your application.

like image 98
Chan Avatar answered Oct 24 '22 08:10

Chan