Hi Everybody,
I have tried to connect to infobrite server using clojure.java.jdbc . Infobrite server is supposed to be identical to mysql in terms of the protocol. I have successfully used mysqlworkbench to talk to it. When I try to connect to the infobrite server using clojure.java.jdbc, I get the following exception
java.sql.SQLNonTransientConnectionException: CLIENT_PLUGIN_AUTH is required
however if I use the exact same code to query a mysql db it works perfectly fine. Can somebody help please me with this?
Thanks and regards,
Sunil.
The code i use is
(ns cpi.core
(:require [clojure.java.jdbc :as jdbc]
[clojure.string :as s]))
(defn run-query [{:keys [url user password db] :as cnf} & qs]
(println qs)
(println cnf)
(jdbc/with-db-connection [db-conn {:classname "com.mysql.jdbc.Driver"
:subprotocol "mysql"
:subname (str "//" url "/" db)
:user user
:password password}]
(jdbc/query db-conn qs)))