mirror of https://github.com/perkeep/perkeep.git
Paranoia: use db name 'devcamlistore', not 'camlistore'
This commit is contained in:
parent
0a7a3bda34
commit
9652999910
|
@ -29,9 +29,9 @@ unless (-d $root) {
|
|||
}
|
||||
|
||||
if ($opt_wipe) {
|
||||
system("mysqladmin", "-uroot", "-proot", "drop", "camlistore");
|
||||
system("mysqladmin", "-uroot", "-proot", "create", "camlistore") and die "Could not create MySQL database on localhost.\n";
|
||||
my $dbh = DBI->connect("DBI:mysql:database=camlistore", "root", "root", {
|
||||
system("mysqladmin", "-uroot", "-proot", "drop", "devcamlistore");
|
||||
system("mysqladmin", "-uroot", "-proot", "create", "devcamlistore") and die "Could not create MySQL database on localhost.\n";
|
||||
my $dbh = DBI->connect("DBI:mysql:database=devcamlistore", "root", "root", {
|
||||
"RaiseError" => 1,
|
||||
}) or die "Failed to connect to MySQL on localhost.\n";
|
||||
|
||||
|
|
|
@ -186,7 +186,7 @@ func main() {
|
|||
Host: "localhost",
|
||||
User: "root",
|
||||
Password: "root",
|
||||
Database: "camlistore",
|
||||
Database: "devcamlistore",
|
||||
}
|
||||
if ok, err := myIndexer.IsAlive(); !ok {
|
||||
log.Fatalf("Could not connect indexer to MySQL server: %s", err)
|
||||
|
|
Loading…
Reference in New Issue