Permalink
Browse files

add user/password to MySQL connection example doc

  • Loading branch information...
1 parent ce4132a commit 6e7dda8d6b005b78d8b6a1669ac18c66baa14066 @kumarshantanu committed Jul 9, 2012
Showing with 4 additions and 2 deletions.
  1. +4 −2 README.md
View
6 README.md
@@ -24,13 +24,15 @@ The recommended way to create a datasource is to call the
`clj-dbcp.core/make-datasource` function, for example:
```clojure
-(make-datasource {:adapter :mysql :host 'localhost :database 'empdb})
+(make-datasource {:adapter :mysql :host 'localhost :database 'empdb
+ :username "empuser" :password "s3cr3t"})
```
or,
```clojure
-(make-datasource :mysql {:host 'localhost :database 'empdb})
+(make-datasource :mysql {:host 'localhost :database 'empdb
+ :user :empuser :password 's3cr3t})
```
Sections below describe which of the keys are applicable to various databases:

0 comments on commit 6e7dda8

Please sign in to comment.