首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何修复Akonadi找不到mysql-global.conf Kubuntu 20.04?

如何修复Akonadi找不到mysql-global.conf Kubuntu 20.04?
EN

Ask Ubuntu用户
提问于 2021-06-02 06:08:56
回答 1查看 1.2K关注 0票数 2

我让一个数据库服务器重新安装。我安装了MariaDB,虽然它运行良好,但MySQL工作台的某些方面发现很难与MariaDB兼容。最后,我用标准的MySQL 8.0安装取代了它。到目前为止,整个系统运行良好,但看来Akonadi服务没有正常启动。

我使用KOrganizer保存我的所有事件,因为它依赖于Akonadi,所以它无法启动。这就是我得到的状态:

代码语言:javascript
复制
$ akonadictl start

Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
org.kde.pim.akonadiserver: Starting up the Akonadi Server...
org.kde.pim.akonadiserver: Did not find MySQL server default configuration (mysql-global.conf)
org.kde.pim.akonadiserver: Failed to remove runtime connection config file
org.kde.pim.akonadiserver: Shutting down AkonadiServer...
org.kde.pim.akonadicontrol: Application '/usr/bin/akonadiserver' exited normally...

与第三行相反,此位置上存在MySQL配置文件:

代码语言:javascript
复制
$ /usr/sbin/mysqld --verbose --help | grep -A 1 "Default options"
Default options are read from the following files in the given order:
/etc/my.cnf /etc/mysql/my.cnf ~/.my.cnf 

没有办法对服务进行重置。我也不能重新安装它。有什么建议吗?

编辑重新安装模块后,我在启动Akonadi时得到这个日志:

代码语言:javascript
复制
Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
org.kde.pim.akonadiserver: Starting up the Akonadi Server...
org.kde.pim.akonadiserver: database server stopped unexpectedly
org.kde.pim.akonadiserver: Database process exited unexpectedly during initial connection!
org.kde.pim.akonadiserver: executable: "/usr/sbin/mysqld"
org.kde.pim.akonadiserver: arguments: ("--defaults-file=/home/shivendra/.local/share/akonadi/mysql.conf", "--datadir=/home/shivendra/.local/share/akonadi/db_data/", "--socket=/run/user/1000/akonadi/mysql.socket", "--pid-file=/run/user/1000/akonadi/mysql.pid")
org.kde.pim.akonadiserver: stdout: ""
org.kde.pim.akonadiserver: stderr: ""
org.kde.pim.akonadiserver: exit code: 1
org.kde.pim.akonadiserver: process error: "Unknown error"
mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/run/user/1000/akonadi/mysql.socket' (2)'
Check that mysqld is running and that the socket: '/run/user/1000/akonadi/mysql.socket' exists!
org.kde.pim.akonadiserver: Failed to remove runtime connection config file
org.kde.pim.akonadiserver: Shutting down AkonadiServer...
org.kde.pim.akonadicontrol: Application '/usr/bin/akonadiserver' exited normally...
org.kde.pim.akonadicore: ""
org.kde.pim.akonadicore: Job error:  "" for collection: QVector() 

QSqlQuery::prepare: database not open
QSqlDatabasePrivate::removeDatabase: connection 'qt_sql_default_connection' is still in use, all queries will cease to work.
org.kde.pim.akonadi_search_xapian: Xapian Database does not exist at  "/home/shivendra/.local/share/akonadi/search_db/calendars/"
org.kde.pim.akonadi_search_xapian: Xapian Database does not exist at  "/home/shivendra/.local/share/akonadi/search_db/contacts/"
org.kde.pim.akonadi_search_xapian: Xapian Database does not exist at  "/home/shivendra/.local/share/akonadi/search_db/email/"
org.kde.pim.akonadi_search_xapian: Xapian Database does not exist at  "/home/shivendra/.local/share/akonadi/search_db/notes/"
org.kde.pim.akonadiconsole: DatabaseOpeningError "DatabaseOpeningError: Couldn't detect type of database" 
EN

回答 1

Ask Ubuntu用户

发布于 2021-06-02 17:39:07

必须通过以下方式重新安装包,提供mysql-global.conf文件

代码语言:javascript
复制
sudo apt-get install --reinstall akonadi-backend-mysql
票数 4
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/1342147

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档