MySQL DB driver for clojure korma
Question
In the documentation for the korma database library for clojure, it says this:
;;You'll also need the JDBC driver for your database. These are easy to find if ;;you search for "my-db jdbc driver maven". Here's an example for postgres: [postgresql "9.0-801.jdbc4"]
Maybe I'm just not getting how to read pages about Maven (I have no Java experience), but what is the JDBC driver for mysql?
Solution
The maven "coordinates" for the mysql drivers are:
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>5.1.6</version>
Which translated to lein are:
[mysql/mysql-connector-java "5.1.6"]
OTHER TIPS
As you've surmised, Korma/Closure uses Java JDBC, and JDBC requires a different JDBC driver for each underlying database.
The JDBC driver for MySQL can be downloaded here:
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow