Switch to MySQL in dl.php

This commit is contained in:
Daniel Berteaud 2013-11-20 13:13:27 +01:00
parent 668f97e5ba
commit 2772c898b1
1 changed files with 10 additions and 1 deletions

View File

@ -1 +1,10 @@
$dsn = "sqlite:$spoolDir/data.sql";
{
my $dbn = $dl{'DbName'} || 'dl';
my $dbu = $dl{'DbUser'} || 'dl';
my $dbp = $dl{'DbPassword'} || 'secret';
$OUT .=<<"EOF"
\$dsn = "mysql:host=localhost;dbname=$dbn";
\$dbUser = "$dbu";
\$dbPassword = "$dbp";
EOF
}