Merge pull request #151 from SteveClement/master

new: [doc] Added note on re-adding admin user
pull/154/head
Steve Clement 2019-04-15 13:21:15 +09:00 committed by GitHub
commit ef4e972762
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 22 additions and 0 deletions

View File

@ -221,6 +221,28 @@ PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allo
In this case you will need to increase the memory_limit option in `php.ini` file In this case you will need to increase the memory_limit option in `php.ini` file
## I deleted the admin user by mistake
Now, I only have Org Admin.
You have several options:
1. Delete the org admin. MISP automatically creates a new default site admin user if no users are found in the db (mysql: truncate users;)
2. Upgrade a user to a site admin, such as an org admin user:
```
SELECT id, email from users;
```
Note down the ID you want to upgrade. Let's say this is 2 for the example's sake.
```
SELECT id, name from roles;
```
Note down the role ID you want to upgrade. Let's say this is 1 for the example's sake.
```
UPDATE users set role_id = 1 where id = 2;
```
## config.php is not writeable ## config.php is not writeable
``` ```