lein new mysql-test

Edit mysql-test/project.clj to add: [mysql/mysql-connector-java
"5.1.23"] to the list of :dependencies

You'll probably also want to add clojure.java.jdbc or another database
library. For c.j.jdbc, add this dependency: [org.clojure/java.jdbc
"0.3.0-alpha1"]

Your project.clj should look something like this:

(defproject jtest "0.1.0-SNAPSHOT"
  :description "FIXME: write description"
  :url "http://example.com/FIXME";
  :license {:name "Eclipse Public License"
            :url "http://www.eclipse.org/legal/epl-v10.html"}
  :dependencies [[org.clojure/clojure "1.5.1"]
                 [org.clojure/java.jdbc "0.3.0-alpha1"]
                 [mysql/mysql-connector-java "5.1.23"]])

Start a REPL in that project folder.

In the REPL, require the java.jdbc namespaces and start working
against your database:

(require '[clojure.java.jdbc :as j] '[clojure.java.jdbc.sql :as s])

Use the examples in the java.jdbc documentation to help you along:

https://github.com/clojure/java.jdbc/tree/master/doc/clojure/java/jdbc

Sean

On Sun, Apr 7, 2013 at 4:03 PM,  <jayvandal...@gmail.com> wrote:
> I want to access  mysql. it is in c:\program files as mysql
> what is the rule   to create a dependicy statement "
> [mysql/mysql-connector-java "5.1.23"]]".
> I have two books "Practical Clojure"
> "Programming Clojure"
> No answer in the books that I find
>
> --
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clojure@googlegroups.com
> Note that posts from new members are moderated - please be patient with your
> first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>



-- 
Sean A Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/
World Singles, LLC. -- http://worldsingles.com/

"Perfection is the enemy of the good."
-- Gustave Flaubert, French realist novelist (1821-1880)

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to