Today we are going to talk about connecting your java application to a online database.
It is very similar to connecting a offline database which is in your computer.
First of all you have to go to your control panel.
Then click on the Remote MySQL. Then you will be asked to add an access host. You can enter the IP address of the computer that you are going to access the database. If you are accessing the database using a dynamic IP address, then you are allowed to enter percentage sign (%).
It will allow any IP address to access the database. (This is considered as a security risk)
Well, after you adding the access host, you can start connecting the java application to the database.
Now select the database driver and select connect using from the list.
Enter the correct data to the fields and click next and then finish.
Connecting to the online database is now completed. Retrieving and updating data is same as java offline databases.
Hope you got it correctly.
Please comment any questions.
Past Topics:-
- Creating Online Real-Time Chat Application in PHP and JavaScript
- File Handling in VB.NET
- File Handling in JAVA
No comments:
Post a Comment