0

I want to connect the MYSQL database which is situaded in my lan home network. I am using JDBC/ODBC connector.

Cœur
  • 37,241
  • 25
  • 195
  • 267
taufik
  • 25
  • 6

2 Answers2

0
DriverManager.getConnection("jdbc:mysql://ip_addressof_host:3306/db_name", "username", "password");

Use above java code. You must give the ip address of the host machine.

manitaz
  • 1,181
  • 2
  • 9
  • 26
0

At first you need to make Port Forward TCP 3306 from external IP address to internal IP address of your server which located in your home.

There are a lot of variants of instruction depends of your home Gateway.

HardGlory
  • 94
  • 4