我有带 MySQL 的 Dovecot 服务器。Ubuntu 自动停止 MySQL,这导致 Dovecot 出现问题。
为什么会发生这种情况?如何在 MySQL 或 Ubuntu 服务器上禁用自动更新?
日志:
Mar 8 06:36:09 mail-ag-br1-9 systemd[1]: Stopping MariaDB 10.3.32 database server...
Mar 8 06:36:11 mail-ag-br1-9 systemd[1]: mariadb.service: Succeeded.
Mar 8 06:36:11 mail-ag-br1-9 systemd[1]: Stopped MariaDB 10.3.32 database server.
Mar 8 06:36:12 mail-ag-br1-9 systemd[1]: Reloading.
Mar 8 06:36:17 mail-ag-br1-9 systemd[1]: Starting MariaDB 10.3.34 database server...
Mar 8 06:36:18 mail-ag-br1-9 systemd[1]: Started MariaDB 10.3.34 database server.
Mar 8 06:36:18 mail-ag-br1-9 /etc/mysql/debian-start[169719]: Upgrading MySQL tables if necessary.
Mar 8 06:36:18 mail-ag-br1-9 /etc/mysql/debian-start[169722]: Looking for 'mysql' as: /usr/bin/mysql
Mar 8 06:36:18 mail-ag-br1-9 /etc/mysql/debian-start[169722]: Reading datadir from the MariaDB server failed. Got the following error when executing the 'mysql' command line client
Mar 8 06:36:18 mail-ag-br1-9 /etc/mysql/debian-start[169722]: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
Mar 8 06:36:18 mail-ag-br1-9 /etc/mysql/debian-start[169722]: FATAL ERROR: Upgrade failed
Mar 8 06:36:18 mail-ag-br1-9 /etc/mysql/debian-start[169728]: Checking for insecure root accounts.
Mar 8 06:36:18 mail-ag-br1-9 debian-start[169731]: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
Dovecot 问题:
Mar 8 06:36:20 mail-ag-br1-9 dovecot: auth-worker(3808425): Error: sql(****@*****,127.0.0.1,<pxmptrHZrKB/AAAB>): Password query failed: Connection was killed
泰。