#63 new
Steve

managing multiple databases

Reported by Steve | March 8th, 2014 @ 06:04 AM

Firstly - thanks for Piggydb!

I really need to have multiple piggy databases and the Tomcat route seems too complicated for my needs. So I have written a simple Windows "shell script" which allows me to easily manage multiple piggy databases.

I have set up a folder which contains a number of piggydb database folders
The folders are named piggydb-prefix1, piggydb-prefix2, etc with one (the current one) being named just piggydb.

The script which mirrors my programming skills is very basic and inelegant, but it works at least. The steps are briefly:

  • stop piggydb server if it is running
  • user enters the prefix of the desired database folder
  • rename database folders appropriately
  • restart piggydb server

I know somebody could write a far more elegant script maybe in Java, which would do the same thing.

A text version of the bat file is attached. Maybe this will be helpful to someone :)

No comments found

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Piggydb is a Web notebook application that provides you with a platform to build your knowledge personally or collaboratively.

Shared Ticket Bins

People watching this ticket

Attachments

Pages