Summary: | Cannot migrate from mysql to mysql | ||
---|---|---|---|
Product: | [Applications] digikam | Reporter: | Frederic Grelot <fredericg_99> |
Component: | Database-Migration | Assignee: | Digikam Developers <digikam-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | caulier.gilles, fredericg_99, ignatius.reilly, vivo75+kde |
Priority: | NOR | ||
Version: | 2.0.0 | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | 7.5.0 | |
Sentry Crash Report: |
Description
Frederic Grelot
2011-06-21 08:46:36 UTC
I tested lots of things for this bug, and I think the solution was to add the following to the databasecopymanager.cpp, right after the "Migrate_Cleanup_DB" : if (toDBbackend.execDBAction(toDBbackend.getDBAction("CreateDB"), bindingMap) != DatabaseCoreBackend::NoErrors) { emit finished(DatabaseCopyManager::failed, i18n("Error while creating the target database.")); fromDBbackend.close(); toDBbackend.close(); return; } Strangely enough, I think the database was not being created without this... (But still, the same code worked with SQLite, doesn't it?) fixed in 2.0.0-rc I met with exactly the same problem while trying to migrate DK 1.9 with mysql to DK 2.0, then to 2.1. Soon after installing DK 1.9, I had switched from sqlite to mysql. The migration was flawless. Identical mysql log as reported by Frédéric Grelot My set-up: Ubuntu 11.04 Mysql 5.1 mysql user: root with password mysql data on a NTFS volume I don't consider this as fixed Could someone comment and attach the mysql migration script, so that we could execute it manually for further testing? Update to my comment #3: I tried to move the mysql data dir to an ext4 file system instead of NTFS. Same problem, so NTFS is not the culprit. THIS BUG IS NOT RESOLVED |