Hi,
I tried something else and it fixed almost 90% of the issue.
1. I have taken backup of the database folders from /var/lib/mysql/
2. Removed MariaDB and the directories.
3. Reinstalled the MariaDB.
4. Copied the backed up database folders to /var/lib/mysql/
5. Granted permissions to the folder.
6. Reset myswl password.
Now I can login to my CWP. But still I'm getting the following error message in the header area:
Warning: mysqli_connect(): (HY000/1045): Access denied for user 'postfix'@'localhost' (using password: YES) in /usr/local/cwpsrv/htdocs/resources/admin/include/functions.php on line 0
Warning: mysqli_connect(): (HY000/1045): Access denied for user 'postfix'@'localhost' (using password: YES) in /usr/local/cwpsrv/htdocs/admin/admin/index.php on line 0
Also, the FTP Server showing failed in the CWP Dashboard. If I try to start, it shows:
Failed to start pure-ftpd.service: Unit pure-ftpd.service not found.