Paranoia: use db name 'devcamlistore', not 'camlistore'

This commit is contained in:
Brad Fitzpatrick 2011-03-06 13:13:39 -08:00
parent 0a7a3bda34
commit 9652999910
2 changed files with 4 additions and 4 deletions

View File

@ -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";

View File

@ -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)