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

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
alternate_mysql_database_name [2015/12/14 20:27] – [VuFind 2.x and newer] demiankatzconfiguration:alternate_mysql_database_name [2018/12/19 18:36] demiankatz
Line 1: Line 1:
 ====== Using an Alternate MySQL Database Name ====== ====== Using an Alternate MySQL Database Name ======
  
-===== VuFind 1.x =====+In early versions of VuFind, changing the database name was a complex process; because use of these old versions is no longer encouraged, the documentation has been removed (but can be found in earlier page versions through the "Old revisions" link below).
  
-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 VuFind 2.and later, you can easily specify a non-default database name using the database setting in [[configuration:files:config.ini]] without needing any other special configuration changes, and this can be set up for you using VuFind's web-based installer.
- +
-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. +
- +
-<file> +
-  database        = mysql://vufind:mypassword@mysql.example.com/LibVufind +
-</file> +
- +
-  * 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. +
-<code> +
-  debug = 5 +
-</code> +
- +
-===== 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.+
 ---- struct data ---- ---- struct data ----
 ---- ----
  
configuration/alternate_mysql_database_name.txt · Last modified: 2023/03/28 11:50 by andre_l