Search code examples
mysqlclojurekorma

MySQL DB driver for clojure korma


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"]