我试图使用以下命令运行Datomic:
./bin/run -m datomic.peer-server -h localhost -p 8998 -a myaccesskey,mysecret -d demo,"datomic:sql://jdbc:mysql://localhost:3306/datomic?user=datomic&password=datomic"但是每次我运行这个命令它都会抛出:
Exception in thread "main" java.sql.SQLException: No suitable driver有什么想法吗?
ps:我已经将mysql连接器jar添加到./lib。
发布于 2017-04-25 15:32:52
加布里埃尔
您需要向对等服务器命令提供数据库名。您将希望针对正在运行的transactor启动一个数据对等点,并首先创建数据库。对于这个例子,我创建了"test“db。
(require '[datomic.api :as d])
(def uri "datomic:sql://test?jdbc:mysql://localhost:3306/datomic?user=datomic&password=datomic")
(d/create-database uri)创建DB应该返回true。一旦创建了URI字符串,如下所示:
./bin/run -m datomic.peer-server -h localhost -p 8998 -a myaccesskey,mysecret -d demo,"datomic:sql://test?jdbc:mysql://localhost:3306/datomic?user=datomic&password=datomic"干杯,贾雷特
https://stackoverflow.com/questions/43422828
复制相似问题