I cannot use Digikam with mysql anymore. It refuses to start the mysql process. I suppose this is because of the following code in databaseserver.cpp:
const QString mysqldPath(DatabaseConfigElement::element(dbType).dbServerCmd);
//const QString mysqldPath("/usr/sbin/mysqld");
if ( mysqldPath.isEmpty() || mysqldPath.compare( QLatin1String( "SERVERCMD_MYSQL-NOTFOUND" ) ))
kDebug() << "No path to mysqld set in server configuration!";
return DatabaseServerError(DatabaseServerError::StartError, i18n("No path to mysqld set in server configuration."));
The method always aborts when the mysqldPath is either empty or != "SERVERCMD_MYSQL-NOTFOUND". So unless your mysqld binary is named like that, digikam refuses to start it. You should rather use the == operator than compare().
Steps to Reproduce:
1. Configure digikam to use an internal mysql server
2. Invoke "Check Database Connection" or just restart digikam
Digikam is unable to start mysqld and thus cannot connect to the database.
Digikam starts mysqld properly.
I'd classify this as major, because I cannot access my images from digikam anymore.
yes, i can confirm code commented in 3.0.0.
Francesco, what do you think about ?
Do you want me to send a patch?
*ping* pretty please, fix this before 3.0. It's really trivial.
I can also commit this myself, if you prefer that.
You is welcome to commit this patch in git/master...
Git commit 62ec1eae9e92b70f8dcc0e848c3f9bb1692f49c2 by Carsten Pfeiffer.
Committed on 10/01/2013 at 21:59.
Pushed by pfeiffer into branch 'master'.
Make internal mysql server work again.
M +1 -1 databaseserver/databaseserver.cpp