Hello Andreas, I never installed MySQL on this server, only MariaDB. On all installation of MariaDB I have ever done on Ubuntu Servers, the database directory created by the "apt install" command has always been /var/lib/mysql and not /var/lib/mariadb.
For instance on an Ubuntu 24.04 server that did not previous have either MySQL or MariaDB installed: $ ls /var/lib/mariadb /var/lib/mysql ls: cannot access '/var/lib/mariadb': No such file or directory ls: cannot access '/var/lib/mysql': No such file or directory $ sudo apt install mariadb-server Reading package lists... Done Building dependency tree... Done Reading state information... Done The following additional packages will be installed: galera-4 mariadb-plugin-provider-bzip2 mariadb-plugin-provider-lz4 mariadb-plugin-provider-lzma mariadb-plugin-provider-lzo mariadb-plugin-provider-snappy mariadb-server-core pv Suggested packages: mariadb-test doc-base The following NEW packages will be installed: galera-4 mariadb-plugin-provider-bzip2 mariadb-plugin-provider-lz4 mariadb-plugin-provider-lzma mariadb-plugin-provider-lzo mariadb-plugin-provider-snappy mariadb-server mariadb-server-core pv 0 upgraded, 9 newly installed, 0 to remove and 22 not upgraded. [...] $ ls /var/lib/mariadb /var/lib/mysql ls: cannot access '/var/lib/mariadb': No such file or directory /var/lib/mysql: aria_log.00000001 aria_log_control ddl_recovery.log debian-10.11.flag ib_buffer_pool ib_logfile0 ibdata1 ibtmp1 multi-master.info mysql mysql_upgrade_info performance_schema sys -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2153455 Title: Apparmor blocks mariadb-server initialization when /var/lib/mysql is mounted using an LVM volume To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/mariadb/+bug/2153455/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
