mercredi 6 mai 2015

creating new database manually for a software every time while distributing it to a new user?

I've made a desktop based shop-management software using java that will save every product detail and sell history of a particular shop in a database over internet (phpmyadmin). I've a made a connector class and give the path of the database name which connects to the database. The problem is, for every distinct shop I need to create a different database. If i make a .exe file or installation file of my software and distribute it to users, how am i going to create different databases for each user (in this case each shop) through installation process. Is there any way of doing this dynamically or I have to create the database every time before distributing it to a new user (for a new shop actually) ?

Thanks in advance I never make a software to distribute commercially. This is new to me.

Aucun commentaire:

Enregistrer un commentaire