I needed to password protect an existing H2 database. I wanted to do two things:
- Delete existing ADMIN user, who had no user name or password:
DROP USER ""
;
- Create a new user, add a password for the new user:
CREATE USER IF NOT EXISTS example PASSWORD 'example password' ADMIN;