Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

add user/password to MySQL connection example doc

  • Loading branch information...
commit 6e7dda8d6b005b78d8b6a1669ac18c66baa14066 1 parent ce4132a
Shantanu Kumar authored

Showing 1 changed file with 4 additions and 2 deletions. Show diff stats Hide diff stats

  1. +4 2 README.md
6 README.md
Source Rendered
@@ -24,13 +24,15 @@ The recommended way to create a datasource is to call the
24 24 `clj-dbcp.core/make-datasource` function, for example:
25 25
26 26 ```clojure
27   -(make-datasource {:adapter :mysql :host 'localhost :database 'empdb})
  27 +(make-datasource {:adapter :mysql :host 'localhost :database 'empdb
  28 + :username "empuser" :password "s3cr3t"})
28 29 ```
29 30
30 31 or,
31 32
32 33 ```clojure
33   -(make-datasource :mysql {:host 'localhost :database 'empdb})
  34 +(make-datasource :mysql {:host 'localhost :database 'empdb
  35 + :user :empuser :password 's3cr3t})
34 36 ```
35 37
36 38 Sections below describe which of the keys are applicable to various databases:

0 comments on commit 6e7dda8

Please sign in to comment.
Something went wrong with that request. Please try again.