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’@‘127.0.0.1’ (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’@‘127.0.0.1’ (using password: YES)”)
Exception Location: /usr/lib64/python2.7/site-packages/MySQLdb/connections.py in init, line 193
Python Executable: /usr/bin/python
Python Version: 2.7.5
Python Path:
[‘/usr/local/CyberCP’,
‘/usr/bin’,
‘/usr/lib/python2.7/site-packages/gunicorn-19.8.1-py2.7.egg’,
‘/usr/lib64/python27.zip’,
‘/usr/lib64/python2.7’,
‘/usr/lib64/python2.7/plat-linux2’,
‘/usr/lib64/python2.7/lib-tk’,
‘/usr/lib64/python2.7/lib-old’,
‘/usr/lib64/python2.7/lib-dynload’,
‘/usr/lib64/python2.7/site-packages’,
‘/usr/lib/python2.7/site-packages’]
Server time: Tue, 26 Jun 2018 02:43:54 +0000

How to fix it

Thanks

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

grab the password for cyberpanel database from the file

/etc/postfix/mysql-virtual_domains.cf

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/settings.py it has the same pass as listed /etc/postfix/mysql-virtual_domains.cf

if not , try to reset with the same pass as of in /etc/postfix/mysql-virtual_domains.cf and update the file /usr/local/CyberCP/CyberCP/settings.py

this should fix it