How to connect to remote MySql database from NetBeans

This tutorial shows java program to connect to remote MySql Database from NetBeans IDE. Include the MySql jar in classpath of the project. You can download MySql jar here. Update your Database information in the program. DB_Connection.java package DB_Connection; import java.sql.Connection; import java.sql.DriverManager; public class DB_Connection { public static void main(String[] args) { DB_Connection obj_DB_Connection=new …

Continue reading