2017-04-15 12 views
1

が見つかりました:Datomicプロビン/もし適切なドライバを実行していない私は、次のコマンドを使用して、プロ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:私は既に./libにmysql connector jarを追加しました。

答えて

2

ガブリエル、あなたがピア-serverコマンドにデータベース名を提供する必要が

。実行中のトランザクション担当者に対してデータピアを開始し、最初にデータベースを作成したいと思うでしょう。この例では、私は "テスト"データベースを作成しました。

(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" 

乾杯、 ジャレット

関連する問題