Cannot connect to database after upgrading mariadb

After upgrading mariadb in unraid, the database cannot be connected, and the command line connection displays “ERROR 2002 (HY000): Can’t connect to local MySQL server through socket’/var/run/mysqld/mysqld.sock’ (2)”. How can I solve it? This problem caused my “nextcloud” to fail to run.

Please share your docker compose snippet