Hi,
I have a MySQL server running on a machine, say A, and I want to access the DB from another machine B. Now A has blocked port 3306. So I fwded port 3306 on B to 3306 on A using SSH. This works just fine. I can access Mysql fom local machine's port 3306 and no problems there. Problem is it works only when I specify host as localhost and would,'t work if I put B's IP or even 127.0.0.1. I can run java programs that use JDBC to connect to MySQL using localhost. But I have some applications in java that can not get through. Following is the error produced.

Java.lang.ExceptionInInitializerError
       at com.mysql.jdbc.Connection.<init>(Connection.java:1174)
at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:264) at uk.ac.man.bioinf.maxdLoad2.maxdConnection.attemptConnect(maxdConnection.java:3048) at uk.ac.man.bioinf.maxdLoad2.Controller$24.construct(Controller.java:6306) at uk.ac.man.bioinf.maxdLoad2.SwingWorker$2.run(SwingWorker.java:109)
       at java.lang.Thread.run(Thread.java:534)
Caused by: java.lang.RuntimeException: Unable to initialize character set mapping tables
       at com.mysql.jdbc.CharsetMapping.<clinit>(CharsetMapping.java:73)
       ... 6 more

Note that JDBC driver works just fine and here also it loads successfully.

Now, I am not sure if this is MySQL or network or java question. So I am giving it a shot anyway.
Any ideas are really appreciated.
Thank you,
Kaustubh

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/


--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to