unknown variable 'query_cache_limit=1M'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mysql-8.0 (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
This bug has been reported with earlier versions and is still present. Well, it's not the first time that mysql fails during upgrades...
ProblemType: Package
DistroRelease: Ubuntu 20.04
Package: mysql-server-8.0 8.0.25-
ProcVersionSign
Uname: Linux 5.4.0-72-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.11-
Architecture: amd64
CasperMD5CheckR
Date: Fri May 14 08:40:31 2021
ErrorMessage: installed mysql-server-8.0 package post-installation script subprocess returned error exit status 1
InstallationDate: Installed on 2013-04-25 (2940 days ago)
InstallationMedia: Ubuntu 13.04 "Raring Ringtail" - Release amd64 (20130424)
Logs.var.
MySQLConf.
MySQLConf.
[mysqldump]
quick
quote-names
max_allowed_packet = 16M
MySQLVarLibDirL
ProcCmdline: BOOT_IMAGE=
Python3Details: /usr/bin/python3.8, Python 3.8.5, python3-minimal, 3.8.2-0ubuntu2
PythonDetails: /usr/bin/python2.7, Python 2.7.18, python-is-python2, 2.7.17-4
RelatedPackageV
dpkg 1.19.7ubuntu3
apt 2.0.5
SourcePackage: mysql-8.0
Title: package mysql-server-8.0 8.0.25-
UpgradeStatus: Upgraded to focal on 2020-12-03 (161 days ago)
tags: | removed: need-duplicate-check |
Hello,
Thanks for filing a bug.
> Well, it's not the first time that mysql fails during upgrades...
I am really sorry to see that. Though from the logs, I see: cache_limit= 1M'.
[ERROR] [MY-000067] [Server] unknown variable 'query_
Query cache support was removed in 8.0 (ref https:/ /dev.mysql. com/doc/ refman/ 8.0/en/ mysql-nutshell. html and https:/ /mysqlservertea m.com/mysql- 8-0-retiring- support- for-the- query-cache/).
Since these two options were in the 5.7 default config we do try to automatically handle it on upgrades, but the default config file location is /etc/mysql/ mysql.conf. d/mysqld. cnf, so it only checks that location (/etc/mysql/my.cnf is also used by MariaDB, so by default it just includes the directory for the currently installed variant).
The fix for this should simply be to comment out the two lines with query_cache, but if you receive any similar errors after doing that you can check the mysql-nutshell page linked above to see if there's been any change for it.