Re: [CentOS] Re: SSH, SCP connections to remote MySQL Database using OpenOffice Possible?
On Wed, Mar 12, 2008 at 12:37 AM, Craig White [EMAIL PROTECTED] wrote: for the record...I used the default OODBC drivers for postgres on both CentOS 4 and now Cent OS 5 but the postgres db I use is localhost. I mostly use the ODBC drivers from my Fedora desktop (not localhost obviously) and they work fine. so when you state The default ODBC drivers from the unixODBC package don't work. Period. I have to say that in my limited experience, they do indeed work with postgres. I don't generally use MySQL for anything other than special purpose stuff (horde/sqlgrey) and have little interest in reporting from them. Yeah, when I sent the email I was letting personal emotion get in my way because it was frustrating me. I realized shortly before falling asleep that I'd been doing this on my workstation, which has been around since god-knows-when, and has god-knows-what left on it. I think I'll stand up a test vm or second box with just the unixODBC bits and no other java remnants and retest with mysql. Hopefully this time I'll manage to keep my yap shut until I've figured it all out :-P -- During times of universal deceit, telling the truth becomes a revolutionary act. George Orwell ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
RE: [CentOS] Re: SSH, SCP connections to remote MySQL Database using OpenOffice Possible?
It *is* possible to do this with the OOo Calc in centos, but it takes a bit of muscle to get working... You'll also need jta, which unfortunately is non-free, and only available as an srpm from jpackage ( in the 1.6 non-free tree. I haven't seen it appear yet in 1.7). You talking about two pieces of the Java Transaction API (JTA) at: http://java.sun.com/products/jta/index.html and http://jpackage.org/ Where is the 1.6 non free tree @ jpackage? I Could not find it. Is there any documentation for JTA install on jpackage.org site? ...then installing the sun-compat-java package from jpackage.org) Where on http://jpackage.org/ is info/download for sun-compat-java? Could not find it on either the 1.6 or 1.7 tree. This next bit assumes some minimal familiarity with building rpms. You'll have to change the cvs_version string from 1_0_1_B to 1_1 in the jta spec file, and download the jta class package from http://java.sun.com/products/jta/ I didn't bother to fix the documentation related portion of the spec, but rather cheated and built the rpm with '--without javadoc' If you or someone could expand on this a bit, maybe procedural cli steps then I think I could take it from there. I started this same thread over on a major OpenOffice Mail list did not get any new info on this SSH database connect issue. Guess I'm pretty much out of luck unless I can solve this via info from this forum. _ Connect and share in new ways with Windows Live. http://www.windowslive.com/share.html?ocid=TXT_TAGHM_Wave2_sharelife_012008___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Re: SSH, SCP connections to remote MySQL Database using OpenOffice Possible?
On Wed, Mar 12, 2008 at 8:58 AM, Therese Trudeau [EMAIL PROTECTED] wrote: Therese, I'm taking this off-list, so please see the other email. -- During times of universal deceit, telling the truth becomes a revolutionary act. George Orwell ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
RE: [CentOS] Re: SSH, SCP connections to remote MySQL Database using OpenOffice Possible?
Sounds like an OOo problem, then. When I briefly tried testing it, there was a couple of driver options to connect to MySQL, you might try using the one you're not (IIRC one was ODBC and the other was JDBC). Ah HA! That might be the problem, I'm using the JDBC driver and I don't have the ODBC driver installed. Do you know where i could download the ODBC driver? Or, is the ODBC driver the same as the sql-connector-java-5.0.8 driver? That one I do have; I set up OpenOffice to point to that one too as I did for the JDBC Driver. _ Connect and share in new ways with Windows Live. http://www.windowslive.com/share.html?ocid=TXT_TAGHM_Wave2_sharelife_012008___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Re: SSH, SCP connections to remote MySQL Database using OpenOffice Possible?
On Tue, Mar 11, 2008 at 10:33 AM, Therese Trudeau [EMAIL PROTECTED] wrote: Ah HA! That might be the problem, I'm using the JDBC driver and I don't have the ODBC driver installed. Do you know where i could download the ODBC driver? yum search odbc What you're looking for is the unixODBC package. In CentOS it includes an ODBC driver for MySQL as well. Or, is the ODBC driver the same as the sql-connector-java-5.0.8 driver? That one I do have; I set up OpenOffice to point to that one too as I did for the JDBC Driver. No, anything with java in the name is JDBC, not ODBC. Google is your friend as well: http://www.google.ca/search?q=openoffice+odbc+linux The first one is a tutorial on how to connect OOo to MySQL, quite old though. The second one is an article in Linux.com with some information on JDBC vs. ODBC. In general, however, I agree with Matt that your problem is OOo related and asking on an OOo list would be more fruitful. Filipe ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
RE: [CentOS] Re: SSH, SCP connections to remote MySQL Database using OpenOffice Possible?
yum search odbc What you're looking for is the unixODBC package. In CentOS it includes an ODBC driver for MySQL as well. Or, is the ODBC driver the same as the sql-connector-java-5.0.8 driver? That one I do have; I set up OpenOffice to point to that one too as I did for the JDBC Driver. No, anything with java in the name is JDBC, not ODBC. Google is your friend as well: http://www.google.ca/search?q=openoffice+odbc+linux The first one is a tutorial on how to connect OOo to MySQL, quite old though. The second one is an article in Linux.com with some information on JDBC vs. ODBC. In general, however, I agree with Matt that your problem is OOo related and asking on an OOo list would be more fruitful. Filipe Now why didn't I think of that?!? I will and if I find a solution I'll post it on this thread thanks. _ Connect and share in new ways with Windows Live. http://www.windowslive.com/share.html?ocid=TXT_TAGHM_Wave2_sharelife_012008___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Re: SSH, SCP connections to remote MySQL Database using OpenOffice Possible?
On Tue, Mar 11, 2008 at 11:51 AM, Therese Trudeau [EMAIL PROTECTED] wrote: Now why didn't I think of that?!? I will and if I find a solution I'll post it on this thread thanks. I'm ignoring the OT bits of this because for some reason this made me curious. Here are the findings. It *is* possible to do this with the OOo Calc in centos, but it takes a bit of muscle to get working. The default ODBC drivers from the unixODBC package don't work. Period. The jdbc driver will work, however it doesn't come by default, and seems to require Sun java (easiest by installing the jdk rpm from java.sun.com, then installing the sun-compat-java package from jpackage.org) You can get the mysql-connector-java-5.0.8-1jpp package from jpackage.org, and this is the easy part. This package requires log4j, which is in the centos base repo so you'll need to install this as well. You'll also need jta, which unfortunately is non-free, and only available as an srpm from jpackage ( in the 1.6 non-free tree. I haven't seen it appear yet in 1.7). This next bit assumes some minimal familiarity with building rpms. You'll have to change the cvs_version string from 1_0_1_B to 1_1 in the jta spec file, and download the jta class package from http://java.sun.com/products/jta/ I didn't bother to fix the documentation related portion of the spec, but rather cheated and built the rpm with '--without javadoc' After you have sun java, jta, log4j, and the mysql-connector-java package installed, log out log in again. This should put the sun java bits into your openoffice discovered path. We'll see here in a minute anyway. Open up OOo calc, and go to Tools, then Options. Select the java menu item on the left. Make sure the sun java package appears in the list. Make sure the box at the top for 'use java' is checked, and make sure sun java is selected. Then choose 'Class Path', then 'Add archive'. Add the path '/usr/share/java/mysql-connector-java.jar' Now save and exit. It'll tell you that you have to restart OOo Calc, and that's BS. You actually have to log out and log back in again for some insane reason I have yet to discover. This time around you should actually be able to connect to your database by selecting MySQL from the list, and jdbc as the connection type. This works with and without the ssh tunnel in testing here. -- During times of universal deceit, telling the truth becomes a revolutionary act. George Orwell ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Re: SSH, SCP connections to remote MySQL Database using OpenOffice Possible?
On Tue, 2008-03-11 at 22:24 -0400, Jim Perrin wrote: On Tue, Mar 11, 2008 at 11:51 AM, Therese Trudeau [EMAIL PROTECTED] wrote: Now why didn't I think of that?!? I will and if I find a solution I'll post it on this thread thanks. I'm ignoring the OT bits of this because for some reason this made me curious. Here are the findings. It *is* possible to do this with the OOo Calc in centos, but it takes a bit of muscle to get working. The default ODBC drivers from the unixODBC package don't work. Period. The jdbc driver will work, however it doesn't come by default, and seems to require Sun java (easiest by installing the jdk rpm from java.sun.com, then installing the sun-compat-java package from jpackage.org) You can get the mysql-connector-java-5.0.8-1jpp package from jpackage.org, and this is the easy part. This package requires log4j, which is in the centos base repo so you'll need to install this as well. You'll also need jta, which unfortunately is non-free, and only available as an srpm from jpackage ( in the 1.6 non-free tree. I haven't seen it appear yet in 1.7). This next bit assumes some minimal familiarity with building rpms. You'll have to change the cvs_version string from 1_0_1_B to 1_1 in the jta spec file, and download the jta class package from http://java.sun.com/products/jta/ I didn't bother to fix the documentation related portion of the spec, but rather cheated and built the rpm with '--without javadoc' After you have sun java, jta, log4j, and the mysql-connector-java package installed, log out log in again. This should put the sun java bits into your openoffice discovered path. We'll see here in a minute anyway. Open up OOo calc, and go to Tools, then Options. Select the java menu item on the left. Make sure the sun java package appears in the list. Make sure the box at the top for 'use java' is checked, and make sure sun java is selected. Then choose 'Class Path', then 'Add archive'. Add the path '/usr/share/java/mysql-connector-java.jar' Now save and exit. It'll tell you that you have to restart OOo Calc, and that's BS. You actually have to log out and log back in again for some insane reason I have yet to discover. This time around you should actually be able to connect to your database by selecting MySQL from the list, and jdbc as the connection type. This works with and without the ssh tunnel in testing here. for the record...I used the default OODBC drivers for postgres on both CentOS 4 and now Cent OS 5 but the postgres db I use is localhost. I mostly use the ODBC drivers from my Fedora desktop (not localhost obviously) and they work fine. so when you state The default ODBC drivers from the unixODBC package don't work. Period. I have to say that in my limited experience, they do indeed work with postgres. I don't generally use MySQL for anything other than special purpose stuff (horde/sqlgrey) and have little interest in reporting from them. Craig ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] Re: SSH, SCP connections to remote MySQL Database using OpenOffice Possible?
on 3-10-2008 1:33 PM Therese Trudeau spake the following: Date: Mon, 10 Mar 2008 15:12:31 -0400 From: [EMAIL PROTECTED] To: centos@centos.org Subject: Re: [CentOS] SSH, SCP connections to remote MySQL Database using OpenOffice Possible? On Mon, Mar 10, 2008 at 03:08:19PM -0400, Therese Trudeau enlightened us: Date: Mon, 10 Mar 2008 13:27:28 -0400 From: [EMAIL PROTECTED] To: centos@centos.org Subject: Re: [CentOS] SSH, SCP connections to remote MySQL Database using OpenOffice Possible? On Mon, Mar 10, 2008 at 12:38:34PM -0400, Therese Trudeau enlightened us: I can connect to the remote database via Linux desktop, it's just via an un encrypted connection through port 3306. For obvious reasons I don't want to do it that way. My question is, is OpenOffice Calc able to connect to remote databases via SSH and or SCP? If so, do I need a plug in for that, or need to configure calc to do that in some way? How would I do this, or which plug in(s) do I need? No, but what you could do is use an ssh tunnel to accomplish this. Something along the lines of ssh -L 3307:database.example.net:3306 database.example.net This will tell your system to tunnel the local port 3307 through the database box, TO the database box on port 3306. From this point, after you connect via ssh with the above command, you can simply point your database software to the local 3307 port in plain text, and it'll travel over ssh to the remote box. I've probably done a bad job explaining this, so I'll go get some more coffee. Hehe THANKS Jim I need some too! So when I ssh -L 3307:database.example.net:3306, am I doing this via terminal prior to connecting with Calc (or base), then start up base and enter in just the regular database.example.net into the Server URL field in Clac or base? Or do I need to enter ssh -L 3307:database.example.net:3306 just once in to the Server URL FIeld from within OpenOffice Calc or VBase? You should enter localhost:3307. That connects to the local end of your SSH tunnel. OK this is what I tried - I opened up terminal on my local desktop machine, and I issued the command: ssh -L 3307:domain.name.of.DesktopLocalMySQLserver:3306 [EMAIL PROTECTED] Then I started up OpenOffice Calc, clicked on FileNewDatabase, and in the area where it asks for the ServerURL, I entered in: localhost:3307 and just below it where it asks for the port number I also entered in 3307 (the default is 3306). The error I got was Illegal Connection Port Value 3307:3307: and I could not connect. I think what you really want is ssh -L 3307:localhost:3306 remote.db.server The host in the middle is relative to the end machine. You could also probably do ssh -L 3307:remote.db.server:3306 remote.db.server (for that matter, I don't see why you couldn't do ssh -L 3306:... as long as you don't have mysql running on your desktop) OK so you are saying to enter into Terminal, either: ssh -L 3307:localhost:3306 remote.db.server , OR enter into Terminal: ssh -L 3307:remote.db.server:3306 remote.db.server and substitute in my remote server address for remote.db.server Once I do that, what should I enter into the OpenOffice Calc Spreadsheet Application Dialog box, in order to get the OpenOffice Calc local applicationwhich resides on my desktop machine to read the remote database? Correct, that *should* work. Sadly I can't get OpenOffice Calc to connect that way, I keep getting those �Illegal Connection Port Value 3307:3307� errors from Calc when I enter in �localhost:3307� into Calc open new database box. _ If there is a separate port dialog box, don't put the port in twice. IE... In serverurl put localhost and in port put 3307. -- MailScanner is like deodorant... You hope everybody uses it, and you notice quickly if they don't signature.asc Description: OpenPGP digital signature ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
RE: [CentOS] Re: SSH, SCP connections to remote MySQL Database using OpenOffice Possible?
To: centos@centos.org From: [EMAIL PROTECTED] Date: Mon, 10 Mar 2008 13:43:00 -0700 Subject: [CentOS] Re: SSH, SCP connections to remote MySQL Database using OpenOffice Possible? on 3-10-2008 1:33 PM Therese Trudeau spake the following: Date: Mon, 10 Mar 2008 15:12:31 -0400 From: [EMAIL PROTECTED] To: centos@centos.org Subject: Re: [CentOS] SSH, SCP connections to remote MySQL Database using OpenOffice Possible? On Mon, Mar 10, 2008 at 03:08:19PM -0400, Therese Trudeau enlightened us: Date: Mon, 10 Mar 2008 13:27:28 -0400 From: [EMAIL PROTECTED] To: centos@centos.org Subject: Re: [CentOS] SSH,SCP connections to remote MySQL Database using OpenOffice Possible? On Mon, Mar 10, 2008 at 12:38:34PM -0400, Therese Trudeau enlightened us: I can connect to the remote database via Linux desktop, it's just via an un encrypted connection through port 3306. For obvious reasons I don't want to do it that way. My question is, is OpenOffice Calc able to connect to remote databases via SSH and or SCP? If so, do I need a plug in for that, or need to configure calc to do that in some way? How would I do this, or which plug in(s) do I need? No, but what you could do is use an ssh tunnel to accomplish this. Something along the lines of ssh -L 3307:database.example.net:3306 database.example.net This will tell your system to tunnel the local port 3307 through the database box, TO the database box on port 3306. From this point, after you connect via ssh with the above command, you can simply point your database software to the local 3307 port in plain text, and it'll travel over ssh to the remote box. I've probably done a bad job explaining this, so I'll go get some more coffee. Hehe THANKS Jim I need some too! So when I ssh -L 3307:database.example.net:3306, am I doing this via terminal prior to connecting with Calc (or base), then start up base and enter in just the regular database.example.net into the Server URL field in Clac or base? Or do I need to enter ssh -L 3307:database.example.net:3306 just once in to the Server URL FIeld from within OpenOffice Calc or VBase? You should enter localhost:3307. That connects to the local end of your SSH tunnel. OK this is what I tried - I opened up terminal on my local desktop machine, and I issued the command: ssh -L 3307:domain.name.of.DesktopLocalMySQLserver:3306 [EMAIL PROTECTED] Then I started up OpenOffice Calc, clicked on FileNewDatabase, and in the area where it asks for the ServerURL, I entered in: localhost:3307 and just below it where it asks for the port number I also entered in 3307 (the default is 3306). The error I got was Illegal Connection Port Value 3307:3307: and I could not connect. I think what you really want is ssh -L 3307:localhost:3306 remote.db.server The host in the middle is relative to the end machine. You could also probably do ssh -L 3307:remote.db.server:3306 remote.db.server (for that matter, I don't see why you couldn't do ssh -L 3306:... as long as you don't have mysql running on your desktop) OK so you are saying to enter into Terminal, either: ssh -L 3307:localhost:3306 remote.db.server , OR enter into Terminal: ssh -L 3307:remote.db.server:3306 remote.db.server and substitute in my remote server address for remote.db.server Once I do that, what should I enter into the OpenOffice Calc Spreadsheet Application Dialog box, in order to get the OpenOffice Calc local applicationwhich resides on my desktop machine to read the remote database? Correct, that *should* work. Sadly I can't get OpenOffice Calc to connect that way, I keep getting those �Illegal Connection Port Value 3307:3307� errors from Calc when I enter in �localhost:3307� into Calc open new database box. _ If there is a separate port dialog box, don't put the port in twice. IE... In serverurl put localhost and in port put 3307. OK Some progress anyway, by not putting in the port twice I got a connecrtion. But as before, when I connected un securely, OpenOffice freezes up and crashes after about one minute, whether or not it's through port 3306, or through 3307 SSH. _ Shed those extra pounds with MSN and The Biggest Loser! http://biggestloser.msn.com/___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Re: SSH, SCP connections to remote MySQL Database using OpenOffice Possible?
On Mon, Mar 10, 2008 at 05:12:46PM -0400, Therese Trudeau enlightened us: OK Some progress anyway, by not putting in the port twice I got a connecrtion. But as before, when I connected un securely, OpenOffice freezes up and crashes after about one minute, whether or not it's through port 3306, or through 3307 SSH. Sounds like an OOo problem, then. When I briefly tried testing it, there was a couple of driver options to connect to MySQL, you might try using the one you're not (IIRC one was ODBC and the other was JDBC). Matt -- Matt Hyclak Department of Mathematics Department of Social Work Ohio University (740) 593-1263 ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
RE: [CentOS] Re: SSH, SCP connections to remote MySQL Database using OpenOffice Possible?
Sounds like an OOo problem, then. When I briefly tried testing it, there was a couple of driver options to connect to MySQL, you might try using the one you're not (IIRC one was ODBC and the other was JDBC). I'm using both the Java Runtime Environment jre1.6.0_05 and the sql-connector-java-5.0.8 - they both tested out OK after install. _ Shed those extra pounds with MSN and The Biggest Loser! http://biggestloser.msn.com/___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos