From: Simon Cozens Date: Sat, 24 Jan 2004 17:59:01 +0000 (+0000) Subject: Change to mysql while I'm running it at home. X-Git-Tag: 2.10~349 X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=87ae6ebbf4e57d27e14f3d1e4e58a8418f28df19;p=maypole.git Change to mysql while I'm running it at home. git-svn-id: http://svn.maypole.perl.org/Maypole/trunk@13 48953598-375a-da11-a14b-00016c27c3ee --- diff --git a/lib/BeerDB.pm b/lib/BeerDB.pm index 5cb320a..afa303e 100644 --- a/lib/BeerDB.pm +++ b/lib/BeerDB.pm @@ -3,7 +3,8 @@ package BeerDB; use Apache::MVC; use base 'Apache::MVC'; sub handler { Apache::MVC::handler("BeerDB", @_) } -BeerDB->set_database("dbi:SQLite:dbname=/opt/beer/beerdb.db"); +use Class::DBI::Loader::Relationship; +BeerDB->set_database("dbi:mysql:beerdb"); BeerDB->config->{template_root} = "/opt/beer"; BeerDB->config->{uri_base} = "http://neo.trinity-house.org.uk/beerdb/";