CyberPanel down after changing Mysql password

login to root mysql

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