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

2 thoughts on “MT Fun at Sonic.net

  1. Burrowowl

    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 where somebody can find it.

    Now if I could just get back down to Kinokuniya for some more artbooks for gallery purposes…

Comments are closed.