Mariadb cannot connect after dist-upgrade

Solution to this issue has been posted by @pb66 on this thread: