Can't login to CyberPanel - Access denied for user

I can’t login to cyber panel, error

OperationalError at /
(1045, “Access denied for user ‘cyberpanel’@‘’ (using password: YES)”)
Request Method: GET
Request URL: https://domainxyz:8090/
Django Version: 1.11
Exception Type: OperationalError
Exception Value:
(1045, “Access denied for user ‘cyberpanel’@‘’ (using password: YES)”)
Exception Location: /usr/lib64/python2.7/site-packages/MySQLdb/ in init, line 193
Python Executable: /usr/bin/python
Python Version: 2.7.5
Python Path:
Server time: Tue, 26 Jun 2018 02:43:54 +0000

How to fix it


I have the same problem… anybody has a solution for this?

grab the password for cyberpanel database from the file


make sure the MySQL access is working with that password using following command

mysql -u cyberpanel -p

also check the file /usr/local/CyberCP/CyberCP/ it has the same pass as listed /etc/postfix/

if not , try to reset with the same pass as of in /etc/postfix/ and update the file /usr/local/CyberCP/CyberCP/

this should fix it