Unable to login mysql as a root user

I am not able to log into the mysql as a root user in cyberpanel.
I am able to log in as cyberpanel user.
Getting this error while tried to login as a root user
ERROR 1045 (28000): Access denied for user ‘root’@‘localhost’ (using password: YES)

I tried many things but not getting proper solution.
Anyone please help.

You cant login using root password use your user password like you can get from the wp config