Can some tell how to find the file to do this.Thanks
UPDATE user AS user
SET token = concat(MD5(concat(MD5('pass1234'), user.token)),' ', user.token), scheme = 'legacy'
WHERE userid = 1;
The above will reset the password of user with userid = 1 to pass1234. Change the userid if your Admin account is not userid 1.
*NOTE* - If you have a table prefix setup in your config.php file then you must put the table prefix in front of the first "user" on the first line.
Example:
UPDATE vb_user AS user
SET token = concat(MD5(concat(MD5('sudbury8'), user.token)),' ', user.token), scheme = 'legacy'
WHERE userid = 1;
The above query is if vb_ is the table prefix.
You should be able to tell easily if there is a prefix if all the table names start with the same few characters.
Once the query is run the password will now be pass1234 or whatever you set.
Set a simple password by the query and change it to a more complex one after you have logged in to reduce the chance of complications.
UPDATE user AS user
SET token = concat(MD5(concat(MD5('pass1234'), user.token)),' ', user.token), scheme = 'legacy'
WHERE userid = 1;
The above will reset the password of user with userid = 1 to pass1234. Change the userid if your Admin account is not userid 1.
*NOTE* - If you have a table prefix setup in your config.php file then you must put the table prefix in front of the first "user" on the first line.
Example:
UPDATE vb_user AS user
SET token = concat(MD5(concat(MD5('sudbury8'), user.token)),' ', user.token), scheme = 'legacy'
WHERE userid = 1;
The above query is if vb_ is the table prefix.
You should be able to tell easily if there is a prefix if all the table names start with the same few characters.
Once the query is run the password will now be pass1234 or whatever you set.
Set a simple password by the query and change it to a more complex one after you have logged in to reduce the chance of complications.
Comment