wood burning stoves 2.0*
The moose likes JDBC and the fly likes Can't Connect to Mysql with JBuilder... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of JavaScript Promises Essentials this week in the JavaScript forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Can Watch "Can New topic

Can't Connect to Mysql with JBuilder...

Lilyana Saputra

Joined: Feb 03, 2006
Posts: 20
i have a problem....

i want to connect to mysql...using :

// or Class.forName("org.gjt.mm.mysql.Driver");

and ....

con = DriverManager.getConnection("jdbc:mysql://localhost:3306/coba", "", "");

it has been work at Netbeans and TextPad...
but it fail in JBuilder...

I has been copy the driver into ...
C:\Program Files\Java\jdk1.5.0_04\jre\lib\ext

Christophe Verré

Joined: Nov 24, 2005
Posts: 14688

but it fail in JBuilder...

What is the error message ?

[My Blog]
All roads lead to JavaRanch
Lilyana Saputra

Joined: Feb 03, 2006
Posts: 20
this is my method to connect:

and this is error message that appear in log:
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)
George Stoianov
Ranch Hand

Joined: Jan 15, 2006
Posts: 94

at database.Bean1.getDatabaseProductName(Bean1.java:108)

It seems that this is the line causing your problem but we have a different piece of code can you post that as well, and sorry if this sounds silly but do you have an anonymous user with access to that database from any host??

Could you also print the stack trace in your catch blocks so we can see some jvm output.

I agree. Here's the link: http://aspose.com/file-tools
subject: Can't Connect to Mysql with JBuilder...