[Digikam-devel] [Bug 271924] digikam fail to create/update mysql database on startup [PATCH]

Francesco Riosa francesco at pnpitalia.it
Fri Apr 29 10:12:05 BST 2011


https://bugs.kde.org/show_bug.cgi?id=271924


Francesco Riosa <francesco at pnpitalia.it> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #59392|0                           |1
        is obsolete|                            |




--- Comment #2 from Francesco Riosa <francesco pnpitalia it>  2011-04-29 11:12:03 ---
Created an attachment (id=59413)
 --> (http://bugs.kde.org/attachment.cgi?id=59413)
/home/vivo/tmp/digikam-easy-dbupdate.patch

now I've applied it directly to dbconfig.xml.cmake from core with:
patch --verbose -p1 < digikam-easy-dbupdate.patch

emptied digikam-sc/build and recompiled, it start ok but the database is
already updated, so no way to really test it.

initial debug log is:
digikam(11548)/digikam (core) Digikam::AlbumManager::setDatabase:
DatabaseParameters: [ Type "QMYSQL", Name "digikam" (Thumbnails Name
"digikam"); Host Name and Port: "localhost" 0; Username and Password:
"digikam", "digikam"]
QSqlDatabasePrivate::removeDatabase: connection 'ConnectionTest' is still in
use, all queries will cease to work.
digikam(11548)/digikam (core) Digikam::DatabaseConfigElementLoader::readConfig:
Loading SQL code from config file
"/home/vivo/usr/share/apps/digikam/database/dbconfig.xml"
digikam(11548)/digikam (core) Digikam::DatabaseConfigElementLoader::readConfig:
false "1" 1 1
digikam(11548)/digikam (core) Digikam::SchemaUpdater::update: SchemaUpdater
update
digikam(11548)/digikam (core) Digikam::SchemaUpdater::startUpdates: No database
file available
digikam(11548)/digikam (core) Digikam::AlbumRootLocation::AlbumRootLocation:
Creating new Location  "/vivo/docs/NIKON"  uuid 
"volumeid:?uuid=800b21c2-dadc-4930-829e-a96b04ce26fa"
digikam(11548)/digikam (core) Digikam::AlbumRootLocation::AlbumRootLocation:
Creating new Location  "/vivo/Immagini"  uuid 
"volumeid:?uuid=800b21c2-dadc-4930-829e-a96b04ce26fa"
digikam(11548)/digikam (core) Digikam::CollectionManager::updateLocations:
location for  "/home/vivo/docs/NIKON"  is available  true
digikam(11548)/digikam (core) Digikam::CollectionManager::updateLocations:
location for  "/home/vivo/Immagini"  is available  true
digikam(11548)/digikam (core) Digikam::LoadingCache::setCacheSize: Allowing a
cache size of 200 MB
digikam(11548)/digikam (core)
Digikam::ThumbnailLoadThread::initializeThumbnailDatabase: Thumbnail db ready
for use
digikam(11548)/digikam (core) Digikam::AlbumManager::setDatabase: nepomuk
service available true
digikam(11548)/KEXIV2 KExiv2Iface::KExiv2::sidecarFilePathForFile: File path: 
"/home/vivo/docs/NIKON/BLACK/200i10s.nef"  =>  XMP sidecar path: 
"/home/vivo/docs/NIKON/BLACK/200i10s.nef.xmp"
digikam(11548)/digikam (core) Digikam::DImg::load:
"/home/vivo/docs/NIKON/BLACK/200i10s.nef"  : RAW file identified
digikam(11548)/digikam (core) Digikam::ImageScanner::addImage: Adding new item
"/home/vivo/docs/NIKON/BLACK/200i10s.nef"
[...]

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the Digikam-devel mailing list