Database Installation / Configuration Instructions.

BoincSpy has the ability to save all the results sent to Berkley to be saved locally to a database, this can be used to calculate the following:

 

Download

 

            DBSetup.zip                         - md5 checksum: c6e4e40184ca8e5b72625a6ef2d3e3dc *DBSetup.zip

 

Unzip the DBSetup.zip file: ( Unzip to a directory  where the database server resides )

 

Installation steps.

 

Usage

 

BoincSpy 1.0 provides a SQL DB agent to update the database.

 

The executable is in the \DbAgent\cmdline directory.

 

Before running the program you need to run BoincSpy and set the General settings:

 

 

Enable the logging and select the MSSQLDatabase option:

 

Modify the Hostname\Instance Name, Username and Password fields that correspond to your SQL Server configuration. (Defined below )

 

Hit the OK button.

 

Running the BoincSpyAgent.

 

Run the BoincSpyAgent.exe from the command prompt or Windows explorer.

 

Notes/Issues:

 

Database Upgrade procedures

 

Changes to BoincSpy Database -  (Feb 6th, 2005 V0.7 )

 

                osql -Usa -PSomeSAPWD -S ServerName\BoincSpy -i DBUpgrade-V0.7.sql

 

 

Changes to BoincSpy Database -  (Jan 8th, 2005 V0.6 )

 

                osql -Usa -PSomeSAPWD -S ServerName\BoincSpy -i DBUpgrade-V0.6.sql

 

 

Changes  to BoincSpy Database - ( Dec 19th, 2004 V0.4)

 

BoincSpy Database upgrade procedure: V0.3 -> V0.4

 

In the directory where you unzipped DBSetup.zip  type in the following command:

 

 

Changes to the BoincSpy Database  - ( July 1st, 2004  V0.3 )

BoincSpy Database upgrade procedure: V0.2 -> V0.3

 

In the directory where you unzipped DBSetup.zip  type in the following command:

 

Changes to the BoincSpy Database  - ( May 06, 2004  V0.2 )

BoincSpy Database upgrade procedure: V0.1 -> V0.2

 

    If you have installed the previous version do the following:

Instructions to install the Database Server.

 

To gather these results, a database server is required, at this time SQL Server 2000 / SQL Server MSDE is supported.

 

SQL Server MSDE is a re-distributable product that is free from Microsoft. Click here to download.

 

If you have multiple workstations working on BOINC, pick one of your machines that has the most CPU / memory  available and designate that for the database server.

 

Once downloaded and uncompressed, use the following command DOS command to install it: ( Uncompressing will usually create a c:\msde2000a directory ).

 

setup.exe SAPWD="SomeSAPWD" INSTANCENAME="BOINCSPY" SECURITYMODE=SQL DISABLENETWORKPROTOCOLS=0

 

The ReadmeMSDE2000A has other options that you may want to specify, IE directory name you want this to be installed on.

 

Configuring the Database:

 

            CREATE DATABASE [BoincSpy] ON (NAME = N'BoincSpy_Data.MDF',

                        FILENAME = N'C:\Program Files\Microsoft SQL Server\MSSQL$BOINCSPY\Data\BoincSpy_Data.MDF' , SIZE = 2,

                       FILEGROWTH = 10%) LOG ON (NAME = N'BoincSpy_Log.LDF',

                       FILENAME = N'C:\Program Files\Microsoft SQL Server\MSSQL$BOINCSPY\Data\BoincSpy_Log.LDF' , SIZE = 1,

                       FILEGROWTH = 10%)


            Note: If you have 2 physical drives, it is recommended that you have one file located on one drive and the other file on the other drive.

 

Creating a Database user.

             c:>osql -S Servername\BOINCSPY -Usa -PSomeSAPWD

	osql>EXEC sp_addlogin 'some_user', 'some_password', 'BOINCSPY' 
	osql> go
	osql> use BOINCSPY
	osql> go
	osql>exec sp_changedbowner 'some_user'
	osql> go

 

 

Running the Agent as service:.

 

Prerequisites

 

 

 Please Note: Starting with 0.9.9  you need to change the Service to run under an Account that BoincSpy is running from. DO NOT USE Log on as Local System Account.

 

 

Installation

Notes

 

As this is a preliminary release, you should check that the service is running. To do this:

 

 

 

Last Updated: February 06, 2005 12:55