Closed xafizoff closed 6 years ago
I want to use MySQL with Duct. I've added mysql-connector-java library to the project.clj:
[mysql/mysql-connector-java "8.0.11" :exclusions [com.google.protobuf/protobuf-java]]
Note that I had to exclude protobuf, since piggieback requires a newer version of the protobuf. Then I added the :database-url key to the dev.clj:
:duct.module/sql {:database-url "jdbc:mysql://localhost:3306/mydb"}
But when I call (go) in the REPL, I get the following error:
(go)
ClassNotFoundException com.mysql.cj.log.duct.logger.timbre.TimbreLogger@4566f492 java.net.URLClassLoader.findClass (URLClassLoader.java:381)
How to get it working?
PS. I do not know if this is either a problem with the sql module, or a problem with logging module, so I reported this here.
Fixed by this commit, had to add explicit dependency on [duct/database.sql.hikaricp "0.3.3"]. Would be nice to have recent versions of the all libs with lein new duct ....
[duct/database.sql.hikaricp "0.3.3"]
lein new duct ...
I want to use MySQL with Duct. I've added mysql-connector-java library to the project.clj:
Note that I had to exclude protobuf, since piggieback requires a newer version of the protobuf. Then I added the :database-url key to the dev.clj:
But when I call
(go)
in the REPL, I get the following error:How to get it working?
PS. I do not know if this is either a problem with the sql module, or a problem with logging module, so I reported this here.