You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
525 B
23 lines
525 B
13 years ago
|
{
|
||
|
|
||
|
my $db = ${'tt-rss'}{'DbName'} || 'rssdb';
|
||
|
my $user = ${'tt-rss'}{'DbUser'} || 'rssuser';
|
||
|
my $pass = ${'tt-rss'}{'DbPassword'} || 'secret';
|
||
|
my $port = $mysqld{'TCPPort'} || '3306';
|
||
|
|
||
|
$OUT .=<<"HERE";
|
||
|
|
||
|
define('DB_TYPE', "mysql"); // or mysql
|
||
|
define('DB_HOST', "localhost");
|
||
|
define('DB_PORT', "$port");
|
||
|
define('DB_USER', "$user");
|
||
|
define('DB_NAME', "$db");
|
||
|
define('DB_PASS', "$pass");
|
||
|
|
||
|
HERE
|
||
|
}
|
||
|
|
||
|
define('MYSQL_CHARSET', 'UTF8');
|
||
|
// Connection charset for MySQL.
|
||
|
|