T
tobleron
Dear All,
I have a question for Developers who use Java and MySQL.
When you finished your code, and successfully tested on your
localhost, you'll started to distribute your Java application,
wright ? My question is : what is the technique that you use to make
your distributed Java application connect to the MySQL server ?
I have a problem when I start to distribute my Java application.
Previously I used "jdbc:mysql://localhost:3306/dbname" or
"jdbc:mysql://127.0.0.1:3306/dbname" in my local PC, and it runs well.
But when I change to "jdbc:mysql://ip_address:3306/dbname" it can not
work. The error message was
"com.mysql.jdbc.exceptions.jdbc4.CommunicationsException:
Communications link failure".
I tried to follow guidance about connecting mysql from remote hosts,
search for mysql bugs about connector/j, manipulate my.cnf file,
search for another forums, etc, but get no solution. Almost all
samples come with "jdbc:mysql://localhostort/dbname".
Please help.
Note :
I used NetBeans 6.1
Connector/J 5.1.7
MySQL 5.0.51b-community-nt (runs on Win XP SP2)
Please dont give me links about mysql documentation, etc. I've tried
to follow them, thank you. Just share your techniques or practical
solutions.
I have a question for Developers who use Java and MySQL.
When you finished your code, and successfully tested on your
localhost, you'll started to distribute your Java application,
wright ? My question is : what is the technique that you use to make
your distributed Java application connect to the MySQL server ?
I have a problem when I start to distribute my Java application.
Previously I used "jdbc:mysql://localhost:3306/dbname" or
"jdbc:mysql://127.0.0.1:3306/dbname" in my local PC, and it runs well.
But when I change to "jdbc:mysql://ip_address:3306/dbname" it can not
work. The error message was
"com.mysql.jdbc.exceptions.jdbc4.CommunicationsException:
Communications link failure".
I tried to follow guidance about connecting mysql from remote hosts,
search for mysql bugs about connector/j, manipulate my.cnf file,
search for another forums, etc, but get no solution. Almost all
samples come with "jdbc:mysql://localhostort/dbname".
Please help.
Note :
I used NetBeans 6.1
Connector/J 5.1.7
MySQL 5.0.51b-community-nt (runs on Win XP SP2)
Please dont give me links about mysql documentation, etc. I've tried
to follow them, thank you. Just share your techniques or practical
solutions.