About Features Downloads Getting Started Documentation Events Support GitHub

Love VuFind®? Consider becoming a financial supporter. Your support helps build a better VuFind®!

Site Tools


Warning: This page has not been updated in over over a year and may be outdated or deprecated.
configuration:alternate_mysql_database_name

This is an old revision of the document!


Using an Alternate MySQL Database Name

VuFind 1.x

Occasionally the default database name of 'vufind' is not appropriate for your environment. You can specify a different name as part of the install process, but if you decide on a different name after you have already installed VuFind, manually changing the database name used by VuFind is not overly difficult.

In this example, we will use the database name of 'LibVufind' instead of the default of 'vufind'.

  • In the 'Database' section of your config.ini file change the table name provided on the end of the 'database' string.
  database        = mysql://vufind:mypassword@mysql.example.com/LibVufind
  • In the /vufind/web/conf/ directory rename the file vufind.ini to match your new Database name, in our example LibVufind.ini
    • Not renaming the vufind.ini will result in the following error: DB_DataObject Error: Unable to load schema for database and table (turn debugging up to 5 for full error message)
    • Changing the following line in the configuration file vufind/web/conf/config.ini under the Database section will give you more details.
  debug = 5

VuFind 2.x and newer

In VuFind 2.x and later, all this extra work is not necessary. You can specify a non-default database name using the database setting in config.ini without needing any other special configuration changes, and this can be set up for you using VuFind's web-based installer.

configuration/alternate_mysql_database_name.1450124887.txt.gz · Last modified: 2015/12/14 20:28 by demiankatz