November 23, 2002
MT Fun at Sonic.net
From sonic.help.cgi:
> I am requesting feedback from any and all who have installed the weblog
> , movabletype, at sonic using the option mysql.
> My initial installation, configuration and intitialization of the
> application into my sonic mysql database went without a hitch.
> However, the application hiccups frequently, but inconsidently, when
> attempting to update entries. The error message indicated that the app
> can not connect to the mysqld host at timber.sonic.net.
This is due to the style of DBI specification in MT. The fix:
--- lib/MT/ObjectDriver/DBI/mysql.pm~ Tue Sep 3 23:24:42 2002
+++ lib/MT/ObjectDriver/DBI/mysql.pm Wed Sep 4 12:50:00 2002
@@ -23,7 +23,7 @@
my $driver = shift;
$driver->SUPER::init(@_);
my $cfg = $driver->cfg;
- my $dsn = 'dbi:mysql:database=' . $cfg->Database;
+ my $dsn = 'dbi:mysql:' . $cfg->Database;
$dsn .= ';hostname=' . $cfg->DBHost if $cfg->DBHost;
$driver->{dbh} = DBI->connect($dsn, $cfg->DBUser, $cfg->DBPassword,
{ RaiseError => 0, PrintError => 0 })
This will ensure MT works across all DBI's.
-Scott
Posted by jdf at November 23, 2002 12:12 PM
Techy, and confusing, but keep up the good work, I love the site.
Posted by: Dr. Yoda on November 24, 2002 12:39 PM
Thanks, Doc. The techiest stuff is work-related, but I figured that if the CTO at my work found a fix for a Movable Type problem I should probably put it online whre somebody can find it.
Now if I could just get back down to Kinokuniya for some more artbooks for gallery purposes...
Posted by: jdf on November 25, 2002 09:36 AM
Post a comment