CakePHP 3重置密码

I have lost users password in my system developed using cakephp. Is there a way to change passwords using PhpMyadmin or any other way like command line tool (We can use Tinker in laravel)

I did not change Cakephp default encryption method.

Well CakePHP3 Default hash algorithm use BCrypt Hash Algorithm. So you can generate bcrypt hash of any string and save that in your table for particular user (as you know the username).

Eg. one of the Bcrypt hash of string 'test' would be:

$2a$06$j0t7MjWeEZL4ABGM0vZXJOgTgXZMPRFJTZUhkiOHzufrxVpC5chJq

You can generate such hash from bcrypt hash generator.

You could go by Manohar Khadkas answer or you could put something like this somewhere in your app temporarily and copy/paste the result to your database.

$hasher = new \Cake\Auth\DefaultPasswordHasher();
debug($hasher->hash('PUT_NEW_PASSWORD_HERE'));