I have made an application in swing which uses MySQL database. Now I want that whenever my app is made to run on a new system for the first time, the app asks for the ip and port number of mysql from the user and creates the database and its tables automatically. Besides I have created a user in mysql, so it must create it accordingly. This should happen only for the first time.
How can it be done through java...????