[Koha] Access denied 'koha'@'localhost'

Sven Jankofsky sven.jankofsky at tfh-wildau.de
Fri Feb 19 02:10:31 NZDT 2010


Hi,

 I got the following message after updating Lib::XML and Lib::XSLT :

 

Access denied for user 'koha'@'localhost' (using password: YES) at
/usr/share/koha/lib/C4/Context.pm line 646.

 

 

Context.pm line 646:

 

### $context

    ##correct name for db_schme        

    my $db_driver;

    if ($context->config("db_scheme")){

    $db_driver=db_scheme2dbi($context->config("db_scheme"));

    }else{

    $db_driver="mysql";

    }

 

    my $db_name   = $context->config("database");

    my $db_host   = $context->config("hostname");

    my $db_port   = $context->config("port") || '';

    my $db_user   = $context->config("user");

    my $db_passwd = $context->config("pass");

    # MJR added or die here, as we can't work without dbh

    my $dbh=
DBI->connect("DBI:$db_driver:dbname=$db_name;host=$db_host;port=$db_port",

                $db_user, $db_passwd) or die $DBI::errstr;

                my $tz = $ENV{TZ};

    if ( $db_driver eq 'mysql' ) { 

        # Koha 3.0 is utf-8, so force utf8 communication between mySQL and
koha, whatever the mysql default config.

        # this is better than modifying my.cnf (and forcing all
communications to be in utf8)

        $dbh->{'mysql_enable_utf8'}=1; #enable

        $dbh->do("set NAMES 'utf8'");

        ($tz) and $dbh->do(qq(SET time_zone = "$tz"));

    }

    elsif ( $db_driver eq 'Pg' ) {

                    $dbh->do( "set client_encoding = 'UTF8';" );

        ($tz) and $dbh->do(qq(SET TIME ZONE = "$tz"));

    }

    return $dbh;

}

 

 

Hope for somebodies help.

Sven

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.katipo.co.nz/pipermail/koha/attachments/20100218/8d1316b0/attachment-0001.htm 


More information about the Koha mailing list