Error after restarting my pi 8GB version. ERROR 2002 (HY000) Can't connect to local MySQL server

Hello everyone,
I hope I did not choose the wrong snap or tag.
I have installed omv on my pi 8GB version and after that, I proceed to install docker and activate portainer. Docker was installed on external storage. I installed ncp and everything was running perfectly. I restarted my pi and after that, I got the error:
ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2)

My external source was mounted before.
ncp-report is throwing this errors:

Cannot load Zend OPcache - it was already loaded
An unhandled exception has been thrown:
Doctrine\DBAL\Exception: Failed to connect to the database: An exception occurred in the driver: SQLSTATE[HY000] [2002] No such file or directory in /data/nextcloud/lib/private/DB/Connection.php:85

details>

HTTPd logs

tail: cannot open '/var/log/apache2/error.log' for reading: No such file or directory

Database logs

tail: cannot open '/var/log/mysql/*.log' for reading: No such file or directory