From d814cc026dd3386a8bc70e9a74eebe1c00374b91 Mon Sep 17 00:00:00 2001 From: Kris Lamoureux Date: Wed, 24 Jun 2020 14:24:28 -0400 Subject: [PATCH] Add commands to reset the local 'admin' account --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index fb9a99b..670a7c6 100644 --- a/README.md +++ b/README.md @@ -84,3 +84,8 @@ import the dump file. mysql -u root --password='' -e "CREATE USER 'easyredmine'@'localhost' IDENTIFIED BY '@redmin3r'" mysql -u root --password='' -e "GRANT ALL PRIVILEGES ON easyredmine.* TO 'easyredmine'" zcat /vagrant/scratch/redmine_dump.sql.gz | mysql -u easyredmine -p'@redmin3r' easyredmine + +To set the local 'admin' account on an imported database to 'password' + + mysql -u root --password='' -D easyredmine -e "UPDATE users SET hashed_password='353e8061f2befecb6818ba0c034c632fb0bcae1b' WHERE login='admin'" + mysql -u root --password='' -D easyredmine -e "UPDATE users SET salt='' WHERE login='admin'"