mysql-server-5.7 fails to install on box with separate /var/lib/mysql partition
Bug #1580794 reported by
Adrian Bridgett
This bug affects 5 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mysql-5.7 (Ubuntu) |
Triaged
|
Medium
|
Lars Tangvald |
Bug Description
the postinst has a line that checks to see if there is a database installed by doing "ls -A" on the state directory (/var/lib/mysql). If you have this as a separate filesystem you are likely to have a lost+found directory here. The postinst then doesn't setup the new DB correctly and the install fails.
I'm not sure why there's an ls here, rather then for example checking for a "mysql" database directory?
tags: | added: mysql-alternate-datadir |
Changed in mysql-5.7 (Ubuntu): | |
milestone: | none → ubuntu-16.09 |
Changed in mysql-5.7 (Ubuntu): | |
assignee: | nobody → Lars Tangvald (lars-tangvald) |
tags: | added: triage |
To post a comment you must log in.
Thanks, we should fix this. Separately from this though I'd recommend creating a directory inside your filesystem and using that, because we have /var/lib/ mysql-keyring and /var/lib/ mysql-files now and you probably want those in that filesystem too.