Setup Database analytics on AWS through Schema spy

Following are the steps through which we have setup an analytics of one complex database which helped our development team to gain insight of the database in no time.

It’s as simple as following below steps:

  1. Install JDK – https://www.digitalocean.com/community/tutorials/how-to-install-java-on-ubuntu-with-apt-get
  2. Install and setup Schema spy and graphviz – https://priyankacool10.wordpress.com/2012/10/13/how-to-install-schemaspy-for-a-database-in-ubuntu-12-04/
  3. Get pg connector  Рsudo wget http://jdbc.postgresql.org/download/postgresql-9.3-1102.jdbc4.jar
  4. Run below command after replacing db details, it will generate outputDir folder with required files in it.
    java -jar schemaSpy_5.0.0.jar -t pgsql -host <database end point>:<db port> -db <db name> -u <db user> -p <db password> -o outputDir -dp postgresql-9.3-1102.jdbc4.jar -s public
  5. Install tomcat 7  in your EC2- sudo apt-get install tomcat7
  6. Now run this command to move your output folder to tomcat : sudo mv outputDir / /var/lib/tomcat7/webapps/db/
  7. Now you an access it through :  http://<host>:8080/db/index.html

Feel free to contact us if you need any help setting it up in your project.

With Love,

Evolvision Team

2 thoughts on “Setup Database analytics on AWS through Schema spy

Leave a Reply