mirror of https://github.com/BOINC/boinc.git
34 lines
966 B
HTML
34 lines
966 B
HTML
|
<title>Setting up a BOINC database</title>
|
||
|
<body bgcolor=ffffff>
|
||
|
<h2>Setting up a BOINC database</h2>
|
||
|
<p>
|
||
|
Each BOINC project uses a relational database to keep track of
|
||
|
participants, applications, work and results.
|
||
|
The BOINC release uses <a href=http://mysql.com>MySQL</a>.
|
||
|
(To use other SQL databases,
|
||
|
you will need to replace the files
|
||
|
db/mysql_util.C and db/db_mysql.C,
|
||
|
as well as some of the PHP files in html_user/).
|
||
|
|
||
|
<p>
|
||
|
You must choose a name for your BOINC database.
|
||
|
A single host can be used for several BOINC databases,
|
||
|
but they must have distinct names.
|
||
|
|
||
|
<p>
|
||
|
The db/ directory contains the following SQL scripts:
|
||
|
|
||
|
<dl>
|
||
|
<dt>drop.sql
|
||
|
<dd>
|
||
|
Delete a BOINC database and create a new
|
||
|
(empty) database.
|
||
|
The token BOINC_DB_NAME represents the name of
|
||
|
the database and should be replaced by the appropriate string.
|
||
|
<dt> schema.sql
|
||
|
<dd>
|
||
|
Create the tables in a BOINC database.
|
||
|
<dt> constraints.sql
|
||
|
<dd>
|
||
|
Define the constraints and indices on a BOINC database.
|
||
|
</dl>
|