$ brew install mysql
$ mysql.server start
$ mysql -uroot -p
mysql> CREATE USER 'tanaguru'@'localhost' IDENTIFIED BY '<password>'; /
GRANT USAGE ON * . * TO 'tanaguru'@'localhost' IDENTIFIED BY '<password>'; /
CREATE DATABASE IF NOT EXISTS `tanaguru` CHARACTER SET utf8; /
GRANT ALL PRIVILEGES ON `<database>` . * TO 'tanaguru'@'localhost'; /
FLUSH PRIVILEGES;
exit;
$ wget http://download.tanaguru.org/Tanaguru/tanaguru-latest.tar.gz
$ tar xzf tanaguru-latest.tar.gz
$ cd tanaguru-3.0.4.i386/
$ sudo ./install.sh --mysql-tg-user tanaguru \
--mysql-tg-passwd password \
--mysql-tg-db tanaguru \
--tanaguru-url http://localhost:8080/tanaguru/
$ mysql -u tanaguru -p tanaguru < install/engine/sql/tanaguru-20-create-tables.sql
$ mysql -u tanaguru -p tanaguru < install/engine/sql/tanaguru-30-insert.sql
$ mysql -u tanaguru -p tanaguru < install/rules/sql/10-rules-resources-insert.sql
Modify the 2 following scripts to remove the lines starting with "INSERT IGNORE INTO TGSI_REFERENTIAL
":
- install/rules/sql/accessiweb2.2-insert.sql
- install/rules/sql/rgaa2.2-insert.sql
$ mysql -u tanaguru -p tanaguru < install/rules/sql/accessiweb2.2-insert.sql
$ mysql -u tanaguru -p tanaguru < install/rules/sql/rgaa2.2-insert.sql
Edit tanaguru.conf file and replace all stars '*********' with the correct user and password for your tanaguru mysql and replace the content of the jdbc.url variable with the right settings.
In bin/tanaguru.sh, change JAVA_BIN to be "/usr/bin/java ".
$ ./bin/tanaguru.sh http://google.com