Avoid editing the database if you can!!
When you’re logged in as you, look at /user/profile.php - you will see a “id=nnn” at the end of the url, where nnn is a number.
Try adding this towards the end of config.php (not right at the end - make sure the
?> is the last thing in that file!!)
If you need more site admins, you can comma-separate the id numbers, eg:
The config file allows you to lock values for certain settings - see your config-dist.php file for all the options. The usual advantage is that that file overrides the database settings, preventing them from being “messed about with”. That allows hosting providers or IT departments the ability to establish various setting without worrying about users/admins being able to change them. The disadvantage is that you can’t override them via the Moodle admin interface so it relies on a level of tech support that some people just don’t have. Whatever works best for your needs