mirror of
https://github.com/krislamo/vagrant-easyredmine
synced 2024-12-16 07:20:36 +00:00
Add commands to reset the local 'admin' account
This commit is contained in:
parent
25ac958c6a
commit
d814cc026d
@ -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'"
|
||||
|
Loading…
Reference in New Issue
Block a user