Enhanced Configuration
This section will cover enhanced configuration of the server, which were previously not possible with the admin panel.
Update your own privileges (Using direct database change)​
Before we can access the admin panel, we need to update our own privileges. This is currently done by updating server's database directly.
For the sake of simplicity, we will use the DBeaver database management tool, but you can use any other tool that supports MySQL databases.
-
Open DBeaver.
-
Connect to your database following the instructions below
noteWhile the credentials used here are the default ones, they can be different depending on your setup. Please check the
.envfile for the correct credentials.- Host:
localhost - Port:
3306(use3308for development builds) - Database:
sunrise - Username:
root - Password:
root
- Host:
-
Open the
Database/sunrise/usertable. -
Find your user in the list, and double-click on it's
Privilegevalue. -
Update it using the following table:
To calculate the privilege level, you should sum the values of the privileges you want to grant.
Current privileges are:
0- User1- Supporter2- Bat (Beatmap Approval Team)8- Administrator16- Developer512- Super User (Can use server maintenance commands)
For example, if you want to grant Bat and Administrator privileges, you would sum 2 (Bat) and 8 (Administrator), resulting in 10.
- Click on the
Apply cell changesbutton (or pressCtrl + S). - Changes will be applied during a minute or so, and you will be able to access the admin panel.