[Koha-bugs] [Bug 8162] packaging scripts create user incorrectly

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Jul 20 12:37:32 CEST 2012


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

--- Comment #7 from Robin Sheat <robin at catalyst.net.nz> ---
Created attachment 11038
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=11038&action=edit
Bug 8162: allow packages to work on Ubuntu Precise

The newer version of MySQL in Ubuntu 12.04 installs a default
'localhost' user with no username. Due to the way that MySQL looks up
user details when you connect, if you connect from localhost and the
user was only created with a wildcard host (%), the anonymous localhost
user will be found instead. This means that your username is lost for
the connection, and you have no privileges.

This patch creates a second user with a hostname of 'localhost'. This
will not work if your database is on a remote server, but you probably
know what you are doing if that's the case. Patches to determine this
server's name relative to the MySQL server are welcome (or even ideas on
how to do it.)

It also fixes up a couple of other small things:
* make koha-remove stop zebra properly
* stop the warning that the password file is missing on create

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list