FS#50144 - [mariadb] user 'mysql': directory '/var/lib/mysql' does not exist

Attached to Project: Arch Linux
Opened by soloturn (soloturn) - Monday, 25 July 2016, 02:11 GMT
Last edited by Christian Hesse (eworm) - Monday, 25 July 2016, 18:04 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Christian Hesse (eworm)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No


sudo pacman -S mariadb
sudo pacman -Rs mariadb

leads to:
user 'mysql': directory '/var/lib/mysql' does not exist

Additional info:
* package version(s)
* config and/or log files etc.

Packages (5) jemalloc-4.2.1-1 libaio-0.3.110-1 libmariadbclient-10.1.14-1 mariadb-clients-10.1.14-1

This task depends upon

Closed by  Christian Hesse (eworm)
Monday, 25 July 2016, 18:04 GMT
Reason for closing:  Not a bug
Additional comments about closing:  This is expected behaviour for security reasons. Users are not delete automatically.
Comment by Doug Newgard (Scimmia) - Monday, 25 July 2016, 03:03 GMT
OK, so what?
Comment by Dave Reisner (falconindy) - Monday, 25 July 2016, 11:36 GMT
Working as intended. We do not remove user accounts on package uninstallation for security reasons. Empty directories *will* be removed by pacman on uninstallation. Your solution is simple: 'userdel mysql' if you're sure that it no longer owns any files written to disk.