Can not connect to mySql database

Hi,

I created a database with tables on my company server.

I programed a java GUI application to communicate the this database, i.e userlogin.java. Everything works perfectly. However, when I cretate a jnlp for this application, changing the and upload it as well as necessary java jar file to the company web space. Tthe program runs with Java web star but it seems that it get no data from the database. For example, when I type my username and password, it shows that there is no such username in the database which in fact my username exist in the database.

Thank you.

[597 byte] By [andrewnguyena] at [2007-11-27 10:37:28]
# 1

Hi,

I created a database with tables on my company server.

I programed a java GUI application to communicate this database, i.e userlogin.java. Everything works perfectly. However, when I cretate a jnlp for this application and upload it as well as necessary all java jar files to the company web space. The program runs with Java web star but it seems that it get no data from the database. For example, when I type my username and password, it shows that there is no such username in the database which in fact my username exist in the database.

Thank you.

Can any one give a advice?

andrewnguyena at 2007-7-28 18:48:21 > top of Java-index,Java Essentials,Java Programming...
# 2

Is your mysql configured to allow that user to connect from the ip from which it is connecting?

masijade.a at 2007-7-28 18:48:21 > top of Java-index,Java Essentials,Java Programming...
# 3

Thank you for your answer.

I'm very new to mySql as server. When I was assigned to write the application, the administrator has set up mySql database in the company web server for my application. My program runs very when using my workplace desktop with java web start or run with java web start in netbeans (all paths should be link to my desktop hard disk, i.e. users/application/). I can not run the application at home because I can not access to the company intranet server (for security purpose). The problem happens when I post the application in the company web page (I have to modify all paths in jnlp file to the company web address). The program then runs without exception except it seems that it gets no data from the database.

Please help me.

Thank you in advance.

andrewnguyena at 2007-7-28 18:48:21 > top of Java-index,Java Essentials,Java Programming...