Issue 13753 - Cannot connect with JDBC
Summary: Cannot connect with JDBC
Status: CLOSED NOT_AN_OOO_ISSUE
Alias: None
Product: Base
Classification: Application
Component: code (show other issues)
Version: OOo 1.0.1
Hardware: Mac Mac OS X, all
: P3 Trivial with 1 vote (vote)
Target Milestone: ---
Assignee: issues@porting
QA Contact: issues@dba
URL:
Keywords: oooqa
Depends on:
Blocks:
 
Reported: 2003-04-23 18:29 UTC by peternsteinmetz
Modified: 2007-02-05 04:33 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
How to connect to MySQL database server from OOo (130.61 KB, application/vnd.sun.xml.writer)
2004-10-18 11:35 UTC, shaunmcdonald131
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description peternsteinmetz 2003-04-23 18:29:05 UTC
I am trying to create a JDBC connection to a mysql database. I have been able to make the 
connection using both the mysql command line tool and a simple java program which uses jdbc.

Whenever I attempt a connection OO complains that no connection could be established, please 
check the username and password. The more button reveals information that the connection could 
not be established and an error with message 'No Java installed!' and a SQL Status : S1000.

This is with JDBC driver class = "com.mysql.jdbc.Driver"
URL = "jdbc:mysql://127.0.0.1:3306/mysql"

I have double checked Java is enabled in the Options and that the classpath points to the jar 
containing the driver.

If I rerun the installer, it acts like nothing needs to be added for the JVM (presumably because the 
OS already has it?)

thanks,
Peter
Comment 1 hans_werner67 2004-02-02 12:47:54 UTC
change subcomponent to 'none'
Comment 2 shaunmcdonald131 2004-06-17 11:35:33 UTC
I have even tried downloading and installing the JDBC module for MySQL from http://dev.mysql.com/
downloads/connector/j/3.0.html

But still have th mentioned problem with OOo 1.1.0, sometimes OOo crashes, with an irrecoverable 
error.
Comment 3 Frank Schönheit 2004-06-21 08:07:15 UTC
assigning to QA
Comment 4 marc.neumann 2004-06-22 12:55:07 UTC
reassign to issues@porting.openoffice.org because it's a Mac issue.
Comment 5 terryt 2004-06-26 07:46:17 UTC
Added oooqa keyword.

Quite frankly I didn't look at this issue when it was first written, because I know nothing 
about JDBC, and not much about MySQL.

Peter, could you please provide very simple and complete step by step instructions, 
assuming I know nothing, so I can at least verify the problem. It might be helpful to attach 
a sample MySQL database, and any other required pieces.
Comment 6 shaunmcdonald131 2004-07-04 22:39:25 UTC
When using the JDBC module for MySQL from http://dev.mysql.com/downloads/connector/j/3.0.html 
what should the JDBC class be. I think it should be different from "com.mysql.jdbc.Driver"
Comment 7 shaunmcdonald131 2004-10-01 13:02:10 UTC
I have tried to access the MySQL database on my iBook from OOo 1.1.2 on Windows
XP, I get the same error messages as mentioned before. Java is installed.
Comment 8 shaunmcdonald131 2004-10-15 09:56:23 UTC
This is no longer an issue.

I will attach the steps of how to do this in the near future.
Comment 9 terryt 2004-10-16 08:10:29 UTC
OK, thanks.
Comment 10 shaunmcdonald131 2004-10-18 11:35:50 UTC
Created attachment 18490 [details]
How to connect to MySQL database server from OOo
Comment 11 shaunmcdonald131 2005-01-17 12:52:59 UTC
As this is no longer an issue, should it be closed?
Comment 12 terryt 2005-01-18 09:39:18 UTC
Perhaps the attached document needs to be put somewhere on the website, or checked into CVS, so it 
doesn't get lost. I haven't read the document yet. Can we leave this issue open for the moment?
Comment 13 shaunmcdonald131 2005-01-18 11:13:14 UTC
If you wish.
Comment 14 haxwell 2005-02-11 16:14:26 UTC
As this is no longer an issue, it should be removed from the Unconfirmed list.
The attached documents will still be in place if anyone needs to access them,
and the issue will still be able to be searched on once it is closed.

No real purpose is served leaving it Unconfirmed. To that end, Resolving this
issue Fixed.
Comment 15 jjmckenzie 2007-02-05 04:30:39 UTC
There are still issues with using JDBC to connect to MySQL remote databases. 
Will connect other issues to this one.

James Mckenzie
Comment 16 jjmckenzie 2007-02-05 04:32:23 UTC
Correction:

This issue is resolved as it is possible to connect to a local MySQL database
using JDBC.  The problem only affects remoted connections.

Closing issue as resolved by vendor.

James McKenzie
Comment 17 jjmckenzie 2007-02-05 04:33:28 UTC
Problem was with the JDBC driver supplied by MySQL and OpenOffice.org
interaction.  MySQL JDBC 3.1.12 or 5.x works.

James McKenzie
Comment 18 jjmckenzie 2007-02-05 04:33:50 UTC
Closing issue.

James McKenzie