(def *db* {:classname "com.mysql.jdbc.Driver"
:subprotocol "mysql" :subname "//your-server/your-db"
:user "your-user" :password "your-password"})
Assumptions - you're using
- Stephen C. Gilardi's clojure.contrib.sql library, and
- MySQL's Connector/J JDBC driver, with mysql-connector-java-5.1.7-bin.jar in your Clojure classpath.
Incidentally, the Connector/J license defaults to GPL, so it may contaminate your application like ice-nine. Hail Bokonon!
No comments:
Post a Comment