Difference between revisions of "Database.pl"

From EPrints Documentation
Jump to: navigation, search
(Created page with '{{dirs}} {{cfgd}}')
 
m
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
{{dirs}}
 
{{dirs}}
 
{{cfgd}}
 
{{cfgd}}
 +
 +
'''database.pl''' is where the settings to connect to your database can be found. If you change your database settings by hand you will need to edit this file to reflect those changes. Broadly speaking this file will never change.
 +
 +
==Example==
 +
<pre>
 +
$c->{dbname} = 'trunk4';
 +
$c->{dbhost} = 'localhost';
 +
$c->{dbport} = undef;
 +
$c->{dbsock} = undef;
 +
$c->{dbuser} = 'trunk4';
 +
$c->{dbpass} = 'SNsvkvEQ';
 +
</pre>

Latest revision as of 12:04, 27 January 2022

EPrints 3 Reference: Directory Structure - Metadata Fields - Repository Configuration - XML Config Files - XML Export Format - EPrints data structure - Core API - Data Objects


Back to cfg.d

database.pl is where the settings to connect to your database can be found. If you change your database settings by hand you will need to edit this file to reflect those changes. Broadly speaking this file will never change.

Example

$c->{dbname} = 'trunk4';
$c->{dbhost} = 'localhost';
$c->{dbport} = undef;
$c->{dbsock} = undef;
$c->{dbuser} = 'trunk4';
$c->{dbpass} = 'SNsvkvEQ';