[Koha-bugs] [Bug 6276] New: Access denied for user ... at localhost

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Apr 28 10:38:00 CEST 2011


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6276

             Bug #: 6276
           Summary: Access denied for user ... at localhost
    Classification: Unclassified
 Change sponsored?: ---
           Product: Koha
           Version: unspecified
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P5
         Component: Packaging
        AssignedTo: robin at catalyst.net.nz
        ReportedBy: dubyk at library.lviv.ua
         QAContact: koha-bugs at lists.koha-community.org


I create Koha-instance with command

sudo koha-create --create-db eng_marc21

Since I have several instances, I have slightly edited Apache-files
~~~~
<VirtualHost *:3003>
ServerName eng_marc21:3003
<VirtualHost *:3333>
ServerName eng_marc21:3333
~~~
Listen 3003
Listen 3333
~~~

Then when I try to access the web-installer I got this error:

Software error:
Access denied for user 'koha_eng_marc21'@'localhost' (using password: YES) at
/usr/share/koha/lib/C4/Context.pm line 692.
Compilation failed in require at /usr/share/koha/lib/C4/Auth.pm line 33.
BEGIN failed--compilation aborted at /usr/share/koha/lib/C4/Auth.pm line 33.
Compilation failed in require at /usr/share/koha/intranet/cgi-bin/mainpage.pl
line 23.
BEGIN failed--compilation aborted at
/usr/share/koha/intranet/cgi-bin/mainpage.pl line 23.
For help, please send mail to the webmaster ([no address given]), giving this
error message and the time and date of the error. 


To get rid of this error I had to execute the following commands (it is my
grant.sh):

MysqlRootPassword=myrootmysqlpass
KohaDB=koha_eng_marc21
KohaDBuser=koha_eng_marc21
KohaDBpassword=mykohadbpass

sudo mysql -uroot -p$MysqlRootPassword $KohaDB -e "GRANT ALL ON $KohaDB.* TO
'$KohaDBuser'@'localhost' IDENTIFIED BY '$KohaDBpassword';
flush privileges;"

sudo /etc/init.d/mysql restart

-- 
Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA Contact for the bug.


More information about the Koha-bugs mailing list