Differential D9735 Diff 25575 databases/akonadi-kf5/files/patch-src_server_storage_dbconfigmysql.cpp
Changeset View
Changeset View
Standalone View
Standalone View
databases/akonadi-kf5/files/patch-src_server_storage_dbconfigmysql.cpp
- This file was added.
| Property | Old Value | New Value |
|---|---|---|
| fbsd:nokeywords | null | yes \ No newline at end of property |
| svn:eol-style | null | native \ No newline at end of property |
| svn:mime-type | null | text/plain \ No newline at end of property |
| --- src/server/storage/dbconfigmysql.cpp.orig 2016-11-15 21:09:59 UTC | |||||
| +++ src/server/storage/dbconfigmysql.cpp | |||||
| @@ -522,9 +522,14 @@ bool DbConfigMysql::initializeMariaDBDat | |||||
| */ | |||||
| bool DbConfigMysql::initializeMySQL5_7_6Database(const QString &confFile, const QString &dataDir) const | |||||
| { | |||||
| + QFileInfo fi(mMysqlInstallDbPath); | |||||
| + QDir dir = fi.dir(); | |||||
| + dir.cdUp(); | |||||
| + const QString baseDir = dir.absolutePath(); | |||||
| return 0 == execute(mMysqldPath, | |||||
| { QStringLiteral("--defaults-file=%1").arg(confFile), | |||||
| QStringLiteral("--initialize"), | |||||
| + QStringLiteral("--basedir=%1/").arg(baseDir), | |||||
| QStringLiteral("--datadir=%1/").arg(dataDir) }); | |||||
| } | |||||