Skip to content

Instantly share code, notes, and snippets.

@a2ndrade
Last active March 15, 2019 22:21
Show Gist options
  • Select an option

  • Save a2ndrade/5234370 to your computer and use it in GitHub Desktop.

Select an option

Save a2ndrade/5234370 to your computer and use it in GitHub Desktop.
Datomic Pro Setup: MySQL
# download
wget http://downloads.datomic.com/0.8.3848/datomic-pro-0.8.3848.zip
unzip datomic-pro-X.X.zip & cd datomic-pro-X.X
# install as a maven artifact
./bin/maven-install
# configure transactor.properties
cp config/samples/sql-transactor-template.properties transactor.properties
# protocol=sql
# host=localhost
# port=4334
# license-key=XXXXX
# sql-url=jdbc:mysql://localhost:3306/datomic
# sql-user=datomic
# sql-password=datomic
# sql-driver-class=com.mysql.jdbc.Driver
# download mysql connector (http://dev.mysql.com/downloads/mirror.php?id=412177)
wget http://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-5.1.24.zip/from/http://cdn.mysql.com/ -O mysql-connector-java-5.1.24.zip
unzip mysql-connector-java-5.1.24.zip
mv mysql-connector-java-5.1.24/mysql-connector-java-5.1.24-bin.jar lib
rm -fr mysql-connector-java-5.1.24 mysql-connector-java-5.1.24.zip
# create datomic db, table and user
mysql -u root < bin/sql/mysql-db.sql
mysql -u root datomic < bin/sql/mysql-table.sql
mysql -u root < bin/sql/mysql-user.sql
# start transactor
bin/transactor transactor.properties
# start shell/peer
bin/shell
Copy link
Copy Markdown

ghost commented Nov 14, 2016

thanks, this helped!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment