Skip to content

Instantly share code, notes, and snippets.

@kumarshantanu
Created August 24, 2010 18:57
Show Gist options
  • Save kumarshantanu/548099 to your computer and use it in GitHub Desktop.
Save kumarshantanu/548099 to your computer and use it in GitHub Desktop.
(def db-mysql
(let [db-host "localhost"
db-port 3306
db-name "sqlrat"]
{ :classname "com.mysql.jdbc.Driver" ; must be in classpath
:subprotocol "mysql"
:subname (str "//" db-host ":" db-port "/" db-name)
; Any additional keys are passed to the driver
; as driver-specific properties.
:user "root"
:password "" }))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment