It looks like ERPNext setup doesn’t recognize MariaDB running without network only via UNIX socket file. The config is:
my.cfg: [mysqld] socket = /run/mysqld/mysqld.sock skip-networking skip-bind-address
$ bench new-site site1.local asks for root password, but results in:
pymysql.err.OperationalError: (2003, "Can't connect to MySQL server on 'localhost' ([Errno 97] Address family not supported by protocol)")
Another user asked for help 2017, but his/her Can’t connect to local MySQL server through socket solution doesn’t work anymore. As MariaDB 10.4.x will launch with socket connection by default, solving this would be highly appreciated.