NO_AUTO_CREATE_USER removed in mysql-8, broke upgrade
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mysql-8.0 (Ubuntu) |
Opinion
|
Undecided
|
Unassigned |
Bug Description
gjgg
ProblemType: Package
DistroRelease: Ubuntu 19.10
Package: mysql-server-8.0 8.0.17-0ubuntu2
ProcVersionSign
Uname: Linux 5.3.0-19-generic x86_64
ApportVersion: 2.20.11-0ubuntu8.1
Architecture: amd64
Date: Fri Nov 1 23:24:51 2019
ErrorMessage: installed mysql-server-8.0 package post-installation script subprocess returned error exit status 1
InstallationDate: Installed on 2019-06-17 (137 days ago)
InstallationMedia: Ubuntu 19.04 "Disco Dingo" - Release amd64 (20190416)
Logs.var.
MySQLConf.
MySQLConf.
[mysqldump]
quick
quote-names
max_allowed_packet = 16M
MySQLConf.
[mysqld_safe]
syslog
MySQLVarLibDirL
ProcCmdline: BOOT_IMAGE=
Python3Details: /usr/bin/python3.7, Python 3.7.5rc1, python3-minimal, 3.7.5-1
PythonDetails: N/A
RelatedPackageV
dpkg 1.19.7ubuntu2
apt 1.9.4
SourcePackage: mysql-8.0
Title: package mysql-server-8.0 8.0.17-0ubuntu2 failed to install/upgrade: installed mysql-server-8.0 package post-installation script subprocess returned error exit status 1
UpgradeStatus: Upgraded to eoan on 2019-11-02 (0 days ago)
modified.
mtime.conffile.
tags: | removed: need-duplicate-check |
summary: |
- package mysql-server-8.0 8.0.17-0ubuntu2 failed to install/upgrade: - installed mysql-server-8.0 package post-installation script subprocess - returned error exit status 1 + NO_AUTO_CREATE_USER removed in mysql-8, broke upgrade |
Thanks for filing this bug in Ubuntu.
This seems to be the error: 02T02:24: 50.952742Z 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. 02T02:24: 50.958476Z 0 [ERROR] [MY-000077] [Server] /usr/sbin/mysqld: Error while setting value 'ERROR_ FOR_DIVISION_ BY_ZERO, NO_AUTO_ CREATE_ USER,NO_ ENGINE_ SUBSTITUTION' to 'sql_mode'. 02T02:24: 51.013521Z 0 [ERROR] [MY-010119] [Server] Aborting
Renaming removed key_buffer and myisam-recover options (if present)
ERROR: Unable to start MySQL server:
2019-11-
2019-11-
2019-11-
NO_AUTO_CREATE_USER was removed from mysql 8: /dev.mysql. com/doc/ refman/ 8.0/en/ mysql-nutshell. html#mysql- nutshell- deprecations
https:/
"""
The following features related to account management are removed:
Using GRANT to create users. Instead, use CREATE USER. Following this practice makes the NO_AUTO_CREATE_USER SQL mode immaterial for GRANT statements, so it too is removed, and an error now is written to the server log when the presence of this value for the sql_mode option in the options file prevents mysqld from starting.
"""
You have it set in /etc/mysql/ mysql.conf. d/mysqld. cnf:
sql_mode = "ERROR_ FOR_DIVISION_ BY_ZERO, NO_AUTO_ CREATE_ USER,NO_ ENGINE_ SUBSTITUTION"
Removing this option should allow your server to start again, and the upgrade to complete:
sudo apt update
sudo apt -f install