If you are facing the problem 'Access denied for user root' , you need to reset your root password
start mysql service in safe mode
service mysqld stop
mysqld_safe --skip-grant-tables
run SQL commands
use mysql;
SET GLOBAL default_password_lifetime = 0;
SET PASSWORD = PASSWORD('YOUR_PASSWORD_HERE');
FLUSH PRIVILEGES;
Note: your password must have enough security level (capital letter, small letter, number,and special character *#..)
update your CWP password, the location of theses files:
/usr/local/cwpsrv/htdocs/resources/admin/include/db_conn.php
/root/.my.cnf
nano /usr/local/cwpsrv/htdocs/resources/admin/include/db_conn.php
nano /root/.my.cnf
Note: change your password in two files above
Finally, start your mysqld
service mysqld startOr reboot your server if necessary