AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / user-255030

Matti Kiviharju's questions

Martin Hope
Matti Kiviharju
Asked: 2021-09-19 04:50:55 +0800 CST

为什么 MySQL 将我的 postfix 虚拟域查询拒绝为“您的 SQL 语法错误”?

  • 1

我的 MySQL Courier + Postfix 电子邮件服务器有问题

这是错误日志:

warning: mysql:/etc/postfix/mysql-virtual_domains.cf: query failed: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'virtual FROM `domains` WHERE domain='domain.example'' at line 1

和代码mysql-virtual_domains.cf:

user = mail_admin
password = mypassword
dbname = mail
query = SELECT domain AS virtual FROM `domains` WHERE domain='%s'
hosts = 127.0.0.1

该怎么办?

mysql postfix courier
  • 1 个回答
  • 240 Views
Martin Hope
Matti Kiviharju
Asked: 2020-04-17 12:55:31 +0800 CST

我尝试让邮件服务器在 PostgreSQL 上工作

  • 0

我尝试让邮件服务器在 PostgreSQL 上工作,但出现以下错误:

Apr 16 20:48:57 alm authdaemond: PGSQL_CONNECTION could not be established
Apr 16 20:48:57 alm authdaemond: FATAL:  database "mail_admin" does not exist.

我遵循本手册并尝试以某种方式使其在 PostgreSQL 而不是 MySQL 中工作: https ://www.howtoforge.com/virtual-users-and-domains-with-postfix-courier-mysql-and-squirrelmail-ubuntu-14.04- lts

是的,我有数据库邮件,它是用户 mail_admin,并且该用户可以访问邮件数据库。

这是更多错误日志。

Apr 16 20:58:35 alm imapd: LOGIN FAILED, [email protected], ip=[::ffff:91.154.218.57]
Apr 16 20:58:36 alm postfix/smtpd[21430]: warning: SASL authentication failure: Password verification failed
Apr 16 20:58:36 alm postfix/smtpd[21430]: warning: unknown[78.128.113.99]: SASL PLAIN authentication failed: authentication failure
Apr 16 20:58:37 alm postfix/smtpd[21430]: lost connection after AUTH from unknown[78.128.113.99]
Apr 16 20:58:37 alm postfix/smtpd[21430]: disconnect from unknown[78.128.113.99] ehlo=1 auth=0/1 commands=1/2
postfix postgresql courier
  • 1 个回答
  • 369 Views
Martin Hope
Matti Kiviharju
Asked: 2020-04-15 00:51:06 +0800 CST

将系统从 14.04 升级到 16.04 后,我无法安装 MySQL

  • 0

将系统从 14.04 升级到 16.04 后,我无法安装 MySQL

我试图让 MySQL 工作的所有内容都会产生类似的错误,如下所示:

   root@alm:~# sudo dpkg --configure -a
   Setting up mysql-server-5.7 (5.7.29-0ubuntu0.16.04.1) ...
   Renaming removed key_buffer and myisam-recover options (if present)
   Job for mysql.service failed because the control process exited with error code. See "systemctl      status mysql.service" and "journalctl -xe" for details.
invoke-rc.d: initscript mysql, action "start" failed.
     mysql.service - MySQL Community Server
     Loaded: loaded (/lib/systemd/system/mysql.service; enabled; vendor preset: enabled)
     Active: activating (auto-restart) (Result: exit-code) since Tue 2020-04-14 11:41:44 EEST; 7ms ago
    Process: 1711 ExecStartPost=/usr/share/mysql/mysql-systemd-start post (code=exited, status=0/SUCCESS)

   Process: 1710 ExecStart=/usr/sbin/mysqld (code=exited, status=1/FAILURE)
   Process: 1700 ExecStartPre=/usr/share/mysql/mysql-systemd-start pre (code=exited,   status=0/SUCCESS)
   Main PID: 1710 (code=exited, status=1/FAILURE)

   Apr 14 11:41:44 alm.i4ware.fi systemd[1]: Failed to start MySQL Community Se....
   Apr 14 11:41:44 alm.i4ware.fi systemd[1]: mysql.service: Unit entered failed....
   Apr 14 11:41:44 alm.i4ware.fi systemd[1]: mysql.service: Failed with result ....
   Hint: Some lines were ellipsized, use -l to show in full.
   dpkg: error processing package mysql-server-5.7 (--configure):
   subprocess installed post-installation script returned error exit status 1
   dpkg: dependency problems prevent configuration of mysql-server:
   mysql-server depends on mysql-server-5.7; however:
   Package mysql-server-5.7 is not configured yet.

   dpkg: error processing package mysql-server (--configure):
   dependency problems - leaving unconfigured
   Errors were encountered while processing:
   mysql-server-5.7
   mysql-server

systemctl status mysql.service说:

mysql.service - MySQL Community Server
   Loaded: loaded (/lib/systemd/system/mysql.service; enabled; vendor preset: en
   Active: activating (start-post) (Result: exit-code) since Tue 2020-04-14 12:2
  Process: 15717 ExecStart=/usr/sbin/mysqld (code=exited, status=1/FAILURE)
  Process: 15709 ExecStartPre=/usr/share/mysql/mysql-systemd-start pre (code=exi
 Main PID: 15717 (code=exited, status=1/FAILURE);         : 15718 (mysql-systemd
   CGroup: /system.slice/mysql.service
           └─control
             ├─15718 /bin/bash /usr/share/mysql/mysql-systemd-start post
             └─15750 sleep 1

Apr 14 12:26:22 alm.i4ware.fi systemd[1]: mysql.service: Service hold-off time o
Apr 14 12:26:22 alm.i4ware.fi systemd[1]: Stopped MySQL Community Server.
Apr 14 12:26:22 alm.i4ware.fi systemd[1]: Starting MySQL Community Server...
Apr 14 12:26:24 alm.i4ware.fi systemd[1]: mysql.service: Main process exited, co
...skipping...
● mysql.service - MySQL Community Server
   Loaded: loaded (/lib/systemd/system/mysql.service; enabled; vendor preset: en
   Active: activating (start-post) (Result: exit-code) since Tue 2020-04-14 12:2
  Process: 15717 ExecStart=/usr/sbin/mysqld (code=exited, status=1/FAILURE)
  Process: 15709 ExecStartPre=/usr/share/mysql/mysql-systemd-start pre (code=exi
 Main PID: 15717 (code=exited, status=1/FAILURE);         : 15718 (mysql-systemd
   CGroup: /system.slice/mysql.service
           └─control
             ├─15718 /bin/bash /usr/share/mysql/mysql-systemd-start post
             └─15750 sleep 1

Apr 14 12:26:22 alm.i4ware.fi systemd[1]: mysql.service: Service hold-off time o
Apr 14 12:26:22 alm.i4ware.fi systemd[1]: Stopped MySQL Community Server.
Apr 14 12:26:22 alm.i4ware.fi systemd[1]: Starting MySQL Community Server...
Apr 14 12:26:24 alm.i4ware.fi systemd[1]: mysql.service: Main process exited, co

该怎么办?

ubuntu mysql ubuntu-16.04 ubuntu-14.04
  • 1 个回答
  • 1107 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve