1
0
mirror of https://github.com/krislamo/vagrant-easyredmine synced 2024-11-09 22:40:36 +00:00

Add commands to reset the local 'admin' account

This commit is contained in:
Kris Lamoureux 2020-06-24 14:24:28 -04:00
parent 25ac958c6a
commit d814cc026d
Signed by: kris
GPG Key ID: A30022791E1719A4

View File

@ -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 "CREATE USER 'easyredmine'@'localhost' IDENTIFIED BY '@redmin3r'"
mysql -u root --password='' -e "GRANT ALL PRIVILEGES ON easyredmine.* TO 'easyredmine'" 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 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'"