I`m an Android developer, and recently started working on JAVA PC project for client.
I wish to use MySQL database at my project but i`m little rusty at this. Before I start learning and remembering how to connect SQL with Java, i would like to ask an important question.
After I export Executable JAR file for my client, the file will include MySQL connection?
I mean will the client have to install MySQL on his PC and import the DB or something extra except java for running JAR file.
Depends where DB is running:
If it is an external server that is available over LAN/internet the client only needs the DB driver (search for mysql connector/J).
Otherwise, if the DB is to be run locally, the client needs to install mysql (and then still your program needs the Connector/J in classpath). I don’t think you can pack a mysql DB in a jar. But you probably can package a SQL script that fills the DB with some initial data.