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
    • 最新
    • 标签
主页 / server / 问题 / 1042327
Accepted
wruckie
wruckie
Asked: 2020-11-13 09:07:55 +0800 CST2020-11-13 09:07:55 +0800 CST 2020-11-13 09:07:55 +0800 CST

升级到 Ubuntu 20.04 LTS 后,为什么 mySQL 无法启动?

  • 772

升级到 Ubuntu 20.04 LTS 后,我的 WordPress 网站陷入维护模式。mySQL 试图从文件中每隔几秒重复的这 10 行开始/var/log/mysql/error.log。至少对我来说,快速搜索该术语unknown variable 'query_cache_limit=1M'只会产生说明如何实现此参数的页面。我怎样才能让它再次工作?

2020-11-12T16:12:25.733349Z 0 [Warning] [MY-011068] [Server] The syntax 'expire-logs-days' is deprecated and will be removed in a future release. Please use binlog_expire_logs_seconds instead.
2020-11-12T16:12:25.735469Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.22-0ubuntu0.20.04.2) starting as process 20068
2020-11-12T16:12:25.746199Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
2020-11-12T16:12:26.131087Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
2020-11-12T16:12:26.307241Z 0 [System] [MY-011323] [Server] X Plugin ready for connections. Bind-address: '::' port: 33060, socket: /var/run/mysqld/mysqlx.sock
2020-11-12T16:12:26.370126Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed.
2020-11-12T16:12:26.370481Z 0 [System] [MY-013602] [Server] Channel mysql_main configured to support TLS. Encrypted connections are now supported for this channel.
2020-11-12T16:12:26.377752Z 0 [ERROR] [MY-000067] [Server] unknown variable 'query_cache_limit=1M'.
2020-11-12T16:12:26.378449Z 0 [ERROR] [MY-010119] [Server] Aborting
2020-11-12T16:12:27.821939Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.22-0ubuntu0.20.04.2)  (Ubuntu).
mysql ubuntu-20.04
  • 1 1 个回答
  • 5874 Views

1 个回答

  • Voted
  1. Best Answer
    wruckie
    2020-11-13T09:07:55+08:002020-11-13T09:07:55+08:00

    升级到 Ubuntu 20.04 LTS 后,我的 WordPress 网站陷入了维护模式。(这是我升级的第 4 台机器,前 3 台机器升级没有任何故障。)检查 apache2 后,我查看了 mySQL。在安装过程中,我瞥见了 Ubuntu 20.04 升级过程中出现的红色故障,但没有办法回去查看它所说的内容......所以我跟踪了 mySQL 日志,似乎 mySQL 正在反复尝试开始自己。它每隔几秒钟就不断重复相同的 10 行。唯一似乎有问题的行是未知变量行。所以我派人去寻找那个变量....

    我从文件中找到query_cache_limit并删除了它。/etc/mysql/my.cnf我一删除它,错误日志就变成了query_cache_size一个,所以我也从my.cnf文件中删除了那个。几秒钟之内,mySQL 成功重启,我又重新开始工作了。

    # * Query Cache Configuration
    #
    query_cache_limit = 1M  
    query_cache_size        = 16M 
    #
    # * Logging and Replication
    #
    

    事后分析:不知道这些参数已经存在了多久,或者我是否介绍过它们(我怀疑我做过),因为这个 VPS 已经运行了 6 年以上。删除它们使 mySQL 再次运行。我仍然不知道为什么 mySQL 对它们感到窒息 - 似乎它们很容易忽略它们。希望这对其他人有帮助,因为目前有关此特定错误的信息很少。

    [email protected]_server:~# mysql -V
    mysql  Ver 8.0.22-0ubuntu0.20.04.2 for Linux on x86_64 ((Ubuntu))
    
    • 16

相关问题

  • 开源与专有关系 db mgt 系统的优缺点是什么?

  • 在 solaris 10 上为 mysql 设置 max_allowed_pa​​cket

  • 如何移动 MySQL 的数据目录?

  • 通过 VPN 连接什么是远程服务器 IP?

  • mysql崩溃

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