- This topic has 8 replies, 5 voices, and was last updated 19 years, 12 months ago by
ivansaraiva.
-
AuthorPosts
-
Skywalker14MemberHi,
I have a problem when I want to connect to my MySQL server with the DBExplorer of MyEclipse
Versions:
MySQL 4.1.7
W2K
Eclipse 3.0.1
MyEclipse 3.8.2
JBoss 3.2.2When I try to open a connection, I have the following error message:
Error while trying to login to database:
Communication link failure: java.io.IOException, underlying cause:
Unexpected end of input streamSTACKTRACE:
java.io.IOException: Unexpected end of input stream
…
at
net.sourceforge.squirrel_sql.fw.sql.SQLDriverManager.getConnection(SQLDriver [can’t see following error]
at
com.genuitec.eclipse.sqlexplorer.sessiontree.actions.LoginProgress$Login.run [can’t see following error] Source)Thx for your help
Riyad KallaMemberChecking with DB dev.
Skywalker14MemberI am the DB dev.
What must I check ?
Riyad KallaMemberSorry, I mean OUR developer that wrote the DB module 😀
support-jeffMemberThe issue is not in MyEclipse. The error indicates connectivity problems. Please confirm that your database is accepting connections properly, and that you have your connection url properly formed. There appear to be several posts on the MySQL forums about similar problems – please check there as well.
Skywalker14MemberHi,
My problem is solved. It was due to the MySQL connector / J.
When I have downloaded the ZIP file (mysql-connector-java-3.0.16-ga.zip), I haven’t unzipped it to extract the .JAR (mysql-connector-java-3.0.16-ga-bin.jar).
So the driver location was not found as expected by DBExplorer as the packaging was incorrect.
freedonnadd71MemberAre you having to put that in aevery project that uses MySQL or is there a common place in which to place the jar file for the connector/J ?
support-jeffMemberDE is not project-oriented. You only need associate a Driver in preferences with the JDBC driver jar file located somewhere on your filesystem. Then you can create as many Connection Profiles using that Driver as you want.
ivansaraivaMemberI want to put a new MySQL connector / J X.X.X jar file, in one place where the eclipse smoothly add to all projects I’ll create with hibernate capabilities, like it does with its own MySQL connector / J and others connectors.
How can do that?Thanks,
Ivan 💡 -
AuthorPosts