Can not install Nextcloud via CLI

Hi Mika,

I am on Turris OS 5.3.2 and get the same error:

root@turris:/# mysql -u root -p
Enter password:
ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/run/mysql.sock’ (2)`

after installing nextcloud via cli.

I have tried all the changes with regards to permissions like:

chown -R mysql:mysql /srv/mysql

But unfortunately restrarting the mysqld service leads to the following error:

root@turris:/tmp# mysqld restart
2022-01-24 11:23:10 0 [Warning] option ‘table_open_cache’: unsigned value 4 adjusted to 10
2022-01-24 11:23:10 0 [Note] mysqld (mysqld 10.4.21-MariaDB) starting as process 14996 …
mysqld: Please consult the Knowledge Base to find out how to run mysqld as root!
2022-01-24 11:23:10 0 [ERROR] Aborting

Please help getting my nextcloud up and running on turris omnia.

Cheers,
Lutz