on 08-02-2012 6:17 PM
Hi,
I am trying to connect mySQL database at receiver end and getting mysql syntax error exception..
JDBC Driver : com.mysql.jdbc.Driver
Connection: jdbc:mysql://<hostname>:3306/test
and deployed following jar file - mysql-connector-java-5.1.21-bin.jar (this is the latest jar is availble in mysql.com / our mysql version is 5.1.57)
added following parameters in provider.xml file -
<jar-name>lib/mysql-connector-java-5.1.21-bin.jar</jar-name>
receiver jdbc comm channel error is - mysql syntax error exception.
please see the attached screen shot error for more details error.
I checked host and port connection are working file both the end.
My concern is jar filename whatever I added in provider.xml file is it correct. because that is the jar file I download and deployed and same .jar file got added in provider.xml file.
Please help.
Can I know what is your PI version?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Technically speaking your current jar should be compatible to work in PI 7.31 which runs jdk 1.5+. But you can also give a try with the jdbc driver version mysql-connector-java-5.0.7-bin.jar and see if that helps.
looks like both the drivers are fine..I tested using sample java program.
I went to externarl definition in ESR and trying to import table structure, it showing me list of mysql database tables and when I select the table it is throwing me error - "
Error occurred while attempting to connect to database
See error logs for details"
and attached commchannel error, if there is a driver problem how do I get list of mysql tables..I assume connection is fine.
User | Count |
---|---|
78 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.