How to find your password of SFTP and MySql root and phpMyAdmin?
How to find your password of SFTP and MySql root and phpMyAdmin if you forgot the passwod ?
We recorded the initial password on file at /www/mysql-and-sftp-password.php , you can use ssh command more /www/mysql-and-sftp-password.php to find it. Root password of phpMyAdmin is the same as MySql root.
[root@testovz ~]# more /www/mysql-and-sftp-password.php <?php /* phpMyAdmin url: http://your-ip-address/phpMyAdmin4U/ MySql root password is cft.sWVdxb2V1 SFTP username: myweb SFTP password: cft.sWVdxb2V1 NOTE: Please write down the password then delete this file. */ ?>
For security reason, Please write down the password then delete this file /www/mysql-and-sftp-password.php
How to reset the password if you already deleted this password record file?
- You can easily reset the password of SFTP user myweb via SSH root login, use command "passwd myweb" then type your new password twice.
- You need google for reset the password of MySql root.