[Bug 15664] koha-restore: Allow database dump to be restored to another Koha instance
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15664 --- Comment #8 from Marcel de Rooy <m.de.rooy@rijksmuseum.nl> --- (In reply to Rudolf Byker from comment #6)
Another option is to use sed to replace the USE and CREATE DATABASE commands using regular expressions. This can be done using pipes, without creating a new dump. I wrote this bash function a while ago, which imports a gzipped Koha sql-dump. The first argument is the name of the database you want to create, and the second argument is the file name to import from.
Thx for sharing. Personally I would opt for creating a dump without db-name instead of search/replace. With a bad databasename you will be in trouble.. But sure, it can be done. -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org