[jifty-devel] Re: [Jifty-commit] r505 -

Thomas Sibley trs at bestpractical.com
Sun Jan 15 23:21:43 EST 2006


jifty-commit at lists.jifty.org wrote:
> Author: jesse
> Date: Sat Jan 14 13:25:14 2006
> New Revision: 505
[snip]
> Modified: jifty/trunk/lib/Jifty/Script/Schema.pm
> ==============================================================================
> --- jifty/trunk/lib/Jifty/Script/Schema.pm	(original)
> +++ jifty/trunk/lib/Jifty/Script/Schema.pm	Sat Jan 14 13:25:14 2006
> @@ -406,6 +406,7 @@
>      # Everything but the template1 database is assumed
>      my %connect_args;
>      $connect_args{'database'} = 'template1' if ( $driver eq 'Pg' );
> +    $connect_args{'database'} = 'mysql' if ( $driver eq 'mysql' );
>      $handle->connect(%connect_args);

This causes the connect to fail if the user/pass specified in 
etc/config.yml doesn't have access to the 'mysql' table, which is often 
the case.

If you remove the line above that's been added, mysql then seems to work 
with Jifty (well, at the very least 'jifty schema --setup' works).

Tom


More information about the jifty-devel mailing list