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) {
|
if ($opt_wipe) {
|
||||||
system("mysqladmin", "-uroot", "-proot", "drop", "camlistore");
|
system("mysqladmin", "-uroot", "-proot", "drop", "devcamlistore");
|
||||||
system("mysqladmin", "-uroot", "-proot", "create", "camlistore") and die "Could not create MySQL database on localhost.\n";
|
system("mysqladmin", "-uroot", "-proot", "create", "devcamlistore") and die "Could not create MySQL database on localhost.\n";
|
||||||
my $dbh = DBI->connect("DBI:mysql:database=camlistore", "root", "root", {
|
my $dbh = DBI->connect("DBI:mysql:database=devcamlistore", "root", "root", {
|
||||||
"RaiseError" => 1,
|
"RaiseError" => 1,
|
||||||
}) or die "Failed to connect to MySQL on localhost.\n";
|
}) or die "Failed to connect to MySQL on localhost.\n";
|
||||||
|
|
||||||
|
|
|
@ -186,7 +186,7 @@ func main() {
|
||||||
Host: "localhost",
|
Host: "localhost",
|
||||||
User: "root",
|
User: "root",
|
||||||
Password: "root",
|
Password: "root",
|
||||||
Database: "camlistore",
|
Database: "devcamlistore",
|
||||||
}
|
}
|
||||||
if ok, err := myIndexer.IsAlive(); !ok {
|
if ok, err := myIndexer.IsAlive(); !ok {
|
||||||
log.Fatalf("Could not connect indexer to MySQL server: %s", err)
|
log.Fatalf("Could not connect indexer to MySQL server: %s", err)
|
||||||
|
|
Loading…
Reference in New Issue