GoogleCloudPlatform / GoogleCloudPlatform/cloud-sql-jdbc-socket-factory
Documentation says the mysql driver is not needed
- Dominant language
- Java
- Stars
- 255
- Forks
- 117
- Avg merge
- 2d 19h
- Merged PRs (30d)
- 4
Description
### Description
That's what this documentation claims [docs/jdbc.md](https://github.com/GoogleCloudPlatform/cloud-sql-jdbc-socket-factory/blob/main/docs/jdbc.md).
Which may be correct if you know how to get the actual dependency loaded (e.g. there's a `native` maven profile which might achieve it), however, I couldn't get it to work without actually adding the mysql driver as a dependency in my project, via:
```
com.mysql
mysql-connector-j
9.4.0
compile
com.google.cloud.sql
mysql-socket-factory-connector-j-8
1.25.3
```
Only then could I create and use a fat (uber) jar that worked. Also, the mysql setup instructions differ in that respect from all other DB vendor instructions.
### Potential Solution
Just state that also mysql will need the driver and recommend a version.
### Additional Details
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.