PHF
September 10, 2019, 12:19am
1
I lost all data from site_config the file was corrupted, and now i need to recreate the file, i have the db_name, but i lost the db_password, how can i get this encrypted password?
lukptr
September 10, 2019, 2:07am
2
Hi,
Unfortunately recover an encrypted password is not possible,
You may need to try this to recover your database
hi,
You may try this method to recover the database
Check the site1.local database name by accessing the database server
mysql -uroot -p
SHOW DATABASES;
Dump the database
mysqldump -uroot -p [database_name] > dump.sql
Create new site and restore the database dump to the new site
bench new-site site2.local
bench --site site2.local --force restore ./dump.sql
*unfortunately you may not be able to recover the deleted hash
I hope this helps you.