'which jdbc (connector/j) to install for mac os
I'm trying to download jdbc connector, but I cannot find mac os from the selection options from the link below:
https://dev.mysql.com/downloads/connector/j/
Where can I download mysql connector for mac os?
Or is it the case that jdbc connector is already installed for mac os?
I'm trying to using logstash to transfer mysql data into elasticsearch.
Solution 1:[1]
MySQL Connector/J is a Java library, and it is a pure Java driver, so it is platform independent. The various installers offered on the download page are just to simplify installation (although generally, installing Java libraries using an installer makes very little sense to me).
For MacOS, you can use 'platform independent' and either download the tar.gz
or the zip
, whichever you feel is simpler to unpack.
For development purposes, it would be simpler to use the MySQL Connector/J Maven dependency, for example:
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>8.0.29</version>
</dependency>
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 |