LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   OO Base to MYSQL login error (https://www.linuxquestions.org/questions/linux-software-2/oo-base-to-mysql-login-error-846590/)

jfraymondpa 11-25-2010 04:40 PM

OO Base to MYSQL login error
 
1 Attachment(s)
I am trying to connect from OO Base to an existing MYSQL Database. I get this error (see attachment)
when I try the "Test Connection" from the login page.
I'm able to access the database either from the command line or from MYSQL Query using the same id and password.
I've double checked the "jar" and "jre" all seem to work correctly.

Any help is greatly appreciated.
John

paulsm4 11-25-2010 06:26 PM

Q: Have you followed any variation of these instructions:
http://wiki.services.openoffice.org/...MySQL_and_Base

Q: Specifically, have you downloaded and verified either the ODBC or JDBC connectors for MySQL?

Q: What is the exact connection string that's failing?

jfraymondpa 11-26-2010 07:53 AM

Quote:

Originally Posted by paulsm4 (Post 4171281)
Q: Have you followed any variation of these instructions:
http://wiki.services.openoffice.org/...MySQL_and_Base

Q: Specifically, have you downloaded and verified either the ODBC or JDBC connectors for MySQL?

Q: What is the exact connection string that's failing?

Q1 - Yes, that is the site I got the instructions from.
Q2 - Yes, for the JDBC connector.
Q3 - That's the rub, all I see is that error message. Any idea where to look for the SQL that's being sent?

-- John

paulsm4 11-26-2010 12:06 PM

Hi -

This is the error in your screenshot:
Quote:

You have an error in your SQL syntax; check the manual that corresponds to your MySql server version for the right syntax to use near '????????????????' at line 1
It sounds like it might be a language configuration issue.

Please try this (assuming that UTF8 is what you want):
Quote:

http://forums.mysql.com/read.php?39,...751#msg-283751

Go to the [mysqld] section in my.cnf and add two strings:

collation_server=utf8_general_ci
character_set_server=utf8
As far as SQL tracing, try setting "profileSQL=true" in your JDBC connection properties:
http://dev.mysql.com/doc/refman/5.0/...roperties.html

'Hope that helps

jfraymondpa 11-26-2010 12:46 PM

Paul --

Thanks, the utf8 lines fixed the problem.

-- John


All times are GMT -5. The time now is 10:39 PM.