You need change database password for cyberpanel
login to root mysql. Answer by @die2mrw007 copied from another thread
mysql -u root -p
Then change root password (change NEW_USER_PASSWORD to the password you want to set)
ALTER USER 'root'@'localhost' IDENTIFIED BY 'NEW_USER_PASSWORD';
then change cyberpanel database password using the same method (change NEW_USER_PASSWORD to the password you want to set)
ALTER USER 'cyberpanel'@'localhost' IDENTIFIED BY 'NEW_USER_PASSWORD';
The changed passwords needs to be mentioned/edited in these files:
/home/cyberpanel/.my.cnf
/usr/local/CyberCP/CyberCP/settings.py
/etc/cyberpanel/mysqlPassword
/etc/mysql/my.cnf