0

Hello buddies!
I'm new at Java SE Porgramming with PHP background.
I've made a simple app which uses JSON to save some data and I would like to use MySQL database but there was some question for me.
1. If I used MySQL or any database, how much would my app size increase!?
2. If I used MySQL in my app, would my user need to install MySQL in his device?

4
Contributors
4
Replies
22
Views
3 Years
Discussion Span
Last Post by JamesCherrill
1

The size of the application would increase by the size of the JDBC driver jars, plus any other libraries you end up using (like ORM libraries).
How much that is I don't know, but it can be megabytes.

You need to install MySQL somewhere that your driver can talk to.
That should be obvious.
Where that is is up to you.

1

either that, or you host a database online to which your application(s) connect.
but then you'll force the users to be connected to the net.

1

The JDK comes with JavaDB (a fully Oracle-supported version of Apache Derby) as standard. If you use that in embedded mode you just need to add one 2.6 MB jar to your application, and the user doesn't have to install anything else. Unless you plan an enterprise-scale roll-out I can't see any reason to look any further.

Edited by JamesCherrill

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.