Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Background

This is a new page – please bear with us as we gather the content

The Jena SDB triple store used by default with VIVO can be configured to use a number of databases but is most commonly used with MySQL in the VIVO community.

Excerpts from the VIVO 1.5 Installation Guide

VIVO 1.5 Installation Guide (PDF)
The MySQL database

Essentially all of the data that you store in VIVO will be given to MySQL for storage. The actual location of this data depends on what system you have, and on how you install MySQL but you won’t need to know the location. You will access the data through VIVO, or occasionally through the MySQL client application.

Create an empty MySQL database

Decide on a database name, username, and password. Log into your MySQL server and create a new database in MySQL that uses UTF-8 encoding . You will need these values for Step IV when you configure the deployment properties. At the MySQL command line you can create the database and user with these commands substituting your values for dbname , username , and password . Most of the time, the hostname will equal localhost .

CREATE DATABASE dbname CHARACTER SET utf8;

Grant access to a database user. For example:

GRANT ALL ON dbname.* TO 'username'@'hostname' IDENTIFIED BY 'password';

Keep track of the database name, username, and password.

Specify the JDBC URL of your database. Change the end of the URL to reflect your database name (if it is not "vivo").

Specify deployment properties

Instruction

Property

Value

Specify the JDBC URL of your database. Change the end of the URL to reflect your database name (if it is not "vivo").

VitroConnection.DataSource.url

jdbc:mysql://localhost/vivo

Change the username to match the authorized user you created in MySQL.

VitroConnection.DataSource.username

username set above

Change the password to match the password you created in MySQL.

VitroConnection.DataSource.password

password set above

Specify the maximum number of active connections in the database connection pool to support the anticipated number of concurrent page requests.

VitroConnection.DataSource.pool.maxActive

40

Specify the maximum number of database connections that will be allowed to remain idle in the connection pool. Default is 25% of the maximum number of active connections.

VitroConnection.DataSource.pool.maxIdle

10

Change the dbtype setting to use a database other than MySQL. Otherwise, leave this value unchanged. Possible values are DB2, derby, HSQLDB, H2, MySQL, Oracle, PostgreSQL, and SQLServer. Refer to http://openjena.org/wiki/SDB/Databases_Supported for additional information.

VitroConnection.DataSource.dbtype

MySQL

 

...