Password for Root in PHPMyAdmin

I found Phpmyadmin password in /etc/cyberpanel/mysqlPassword.I can just copy paste that, but if I change that to my own password, it gives Error (I can no longer access phpmyadmin). Should I include some command in Mysql in addition to just changing the text in the file mysqlPassword?