Problem upgrade mysql when datadir is moved to other place
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mysql-5.7 (Ubuntu) |
Confirmed
|
Medium
|
Unassigned |
Bug Description
I have moved mysql datadir to /home/mysql. In /var/lib/mysql is symlink to /home/mysql. Upgrade failed.
ProblemType: Package
DistroRelease: Ubuntu 16.04
Package: mysql-server-5.7 5.7.13-
ProcVersionSign
Uname: Linux 4.4.0-36-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.1
Architecture: amd64
Date: Wed Sep 14 09:51:29 2016
DpkgTerminalLog:
Preparing to unpack .../mysql-
cp: nie je možné prepísať adresár '/var/lib/
dpkg: error processing archive /var/cache/
subprocess new pre-installation script returned error exit status 1
DuplicateSignature:
package:
Preparing to unpack .../mysql-
cp: nie je možné prepísať adresár '/var/lib/
dpkg: error processing archive /var/cache/
subprocess new pre-installation script returned error exit status 1
ErrorMessage: subprocess new pre-installation script returned error exit status 1
InstallationDate: Installed on 2014-12-14 (639 days ago)
InstallationMedia: Ubuntu 14.04.1 LTS "Trusty Tahr" - Release amd64 (20140722.2)
Logs.var.
MySQLConf.
MySQLConf.
[mysqldump]
quick
quote-names
max_allowed_packet = 16M
MySQLConf.
[mysqld_safe]
syslog
MySQLVarLibDirL
ProcCmdline: BOOT_IMAGE=
RelatedPackageV
dpkg 1.18.4ubuntu1.1
apt 1.2.12~
SourcePackage: mysql-5.7
Title: package mysql-server-5.7 5.7.13-
UpgradeStatus: No upgrade log present (probably fresh install)
modified.
mtime.conffile.
tags: | removed: need-duplicate-check |
Changed in mysql-5.7 (Ubuntu): | |
importance: | Undecided → Medium |
Status changed to 'Confirmed' because the bug affects multiple users.