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) {
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";

View File

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