How to find mysql root password of a cPanel server via SSH May 19, 2018 cPanel MySQL Tutorials Login to your server as root via SSH. Step 2 By default, MySQL root password is saved in the /root/.my.cnf file. Open this file using command. cat /root/.my.cnf Step 3 Here you can see your server mysql root password.