Skip to content

zlrth/libby

Repository files navigation

libby

configuring your host machine for the sql database

first you install mysql, following some of these directions: https://coderwall.com/p/os6woq/uninstall-all-those-broken-versions-of-mysql-and-re-install-it-with-brew-on-mac-mavericks . ignore most of it. just do like brew update and brew upgrade and brew install and then (important!):

  • mysql.server start
  • mysql -uroot
  • then, inside mysql: create database bookwarrior;
  • now exit mysql with control-d.
  • now, assuming everything's done, do this: mysql -u root -p bookwarrior < backup_libgen.sql
  • hit enter when prompted for a password
  • it should take minutes.
  • you are ready to learn sql queryies!
  • once you've mysql -uroot'd, don't forget to use bookwarrior;
  • to check that it works, try select title from updated where md5 = '67BA5CC5A7118784770ED996B348C0FD';
  • the result should be: Clojure Applied: From Practice to Practitioner

possibly-useful link:

http://stackoverflow.com/questions/17666249/how-to-import-an-sql-file-using-the-command-line-in-mysql

Prerequisites

You will need Leiningen 2.0 or above installed.

Running

To start the db, run:

mysqld &

To start a web server for the application, run:

lein run

another installation note

flux 0.7.0 still (october 15 2017) isn't in clojars, so you need to lein install it manually like so:

https://github.com/matthoffman/solr-clojure-sample#step-15

License

MIT

make sure to grep for "password" before open-sourcing anything.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published