[CONJ-480] Access denied error on connect to MySQL 5.1.73 Created: 2017-05-29 Updated: 2017-06-01 Resolved: 2017-06-01 |
|
| Status: | Closed |
| Project: | MariaDB Connector/J |
| Component/s: | Other |
| Affects Version/s: | 2.0.2 |
| Fix Version/s: | 1.6.1, 2.0.2 |
| Type: | Bug | Priority: | Major |
| Reporter: | J. Lewis Muir | Assignee: | Diego Dupin |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Description |
|
Using Java 8 and MariaDB Connector/J 2.0.2-SNAPSHOT to connect to a MySQL 5.1.73 database results in an "access denied" error. The connection is created like this:
where url is something like this:
and the result is the following stack trace:
I also tried appending &passwordCharacterEncoding=UTF-8 to url, and another time &passwordCharacterEncoding=ISO-8859-1, neither of which helped. Trying the same using MySQL Connector/J 5.1.42 (with mysql instead of mariadb in url) works fine. Connecting using the mysql command line program from MySQL 5.7.18 works too, and, even though I doubt it matters, the \s command shows the following character set information:
|
| Comments |
| Comment by Diego Dupin [ 2017-06-01 ] | |||||||||||||||
|
MariaDB driver is compatible with 5.5.3 server minimum. correction is available through 2.0.2-SNAPSHOT :
| |||||||||||||||
| Comment by J. Lewis Muir [ 2017-06-01 ] | |||||||||||||||
|
Thank you! I confirm that 2.0.2-SNAPSHOT (i.e., mariadb-java-client-2.0.2-20170601.085036-4.jar) fixes the problem! |