ERR: received status code 401 from server

Hi everyone, I’m trying to install the tig package on my ubuntu 18.04 VM (via GCP), but I get an error when I create database like this:

influx
Connected to http://localhost:8086 version v2.2.0
InfluxDB shell version: 1.8.10
> CREATE DATABASE db_baronnies
ERR: received status code 401 from server

Do you have a solution for me?
Thank you for your answers

401 Unauthorized

The user you are using does not have the proper permission.

And how do you give it permission?
I’ve tried auth but I still get the error, no matter what query I type.

The auth command does not return any result, if you pass a wrong username or password it won’t tell you, and you will keep getting 401 Unauthorized

Every time I use auth the first query I run is SHOW DATABASES to ensure I got it right…