Re: Issue with sql task accessing MySql

Eric Fetzer <[email protected]> Wed, 28 Aug 2019 17:45:06 +0000 (UTC)
Newsgroups gmane.comp.jakarta.ant.user
Message-ID <[email protected]>
 Thanks Stefan, a bit better:
$ ant -f test.xmlBuildfile: test.xml
main:
BUILD FAILEDc:\BuildDeployScripts\test.xml:22: java.lang.UnsupportedClassVersionError: (com/mysql/jdbc/Driver) bad major version at offset=6
Total time: 0 seconds

    On Wednesday, August 28, 2019, 10:49:54 AM MDT, Stefan Bodewig <[email protected]> wrote:  
 
 On 2019-08-28, Eric Fetzer wrote:

> The MySql server I'm accessing upgraded to version 8.0.17:

> So, accordingly, I downloaded the proper driver and linked to it in my task:

> <pathelement path="c:/apache-ant-1.7.0/lib/mysql-connector-java-8.0.17.jar"/>

> BUILD FAILEDc:\BuildDeployScripts\test.xml:22: com.mysql.jdbc.exceptions.MySQLNonTransientConnectionException: Client does not support authentication protocol requested by server; consider upgrading MySQL client

Anything in c:/apache-ant-1.7.0/lib is probably on your CLASSPATH
anyway. Is it possible there is an older version of the mysql connector
inside of that folder as well? If so, remove it.

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]