This is an old revision of the document!
Table of Contents
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 exampleLibVufind.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.