[Koha-bugs] [Bug 6517] koha-create wants "use database" in DEFAULTSQL

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Jun 29 23:36:23 CEST 2011


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

Magnus Enger <magnus at enger.priv.no> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
         AssignedTo|robin at catalyst.net.nz       |magnus at enger.priv.no

--- Comment #5 from Magnus Enger <magnus at enger.priv.no> 2011-06-29 21:36:23 UTC ---
Created attachment 4537
  --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=4537
Proposed patch

This patch makes sure that pointing DEFAULTSQL in /etc/koha/koha-sites.conf to
any (gzip'ed) file produced by mysqldump works, by adding the name of the
database to the end of the call to mysql, when the specified SQL file is
loaded. Files produced with koha-dump-defaults should still work too.

To test:
- Apply the patch
- Create an SQL file from an existing installation with mysqldump
- gzip the SQL file
- point DEFAULTSQL to the file in /etc/koha/koha-sites.conf
- create a new site with koha-create --create-db

-- 
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