Gitea Support Issue - ERROR 1130

I am new to Gitea and decided to run it using docker compose. I set everything up on a ubuntu server 22.04 and when i get to the setup page i get this error.

this is my docker compose file

version: "3"

networks:
  gitea:
    external: false
volumes:
  gitea:
    driver: local

services:
  server:
    image: gitea/gitea:latest
    container_name: gitea
    environment:
      - USER_UID=113
      - USER_GID=118
      - GITEA__database__DB_TYPE=mysql
      - GITEA__database__HOST=db:3306
      - GITEA__database__NAME=gitea
      - GITEA__database__USER=gitea
      - GITEA__database__PASSWD=XYZ1234
    restart: always
    networks:
      - gitea
    volumes:
      - gitea:/data
      - /etc/timezone:/etc/timezone:ro
      - /etc/localtime:/etc/localtime:ro
    ports:
      - "3000:3000"
      - "2222:22"

    depends_on:
      - db

  db:
    image: mysql:8
    restart: always
    environment:
      - MYSQL_ROOT_PASSWORD=ABC1234
      - MYSQL_USER=gitea
      - MYSQL_PASSWORD=ABC1234
      - MYSQL_DATABASE=gitea
    networks:
      - gitea
    volumes:
      - ./mysql:/var/lib/mysql

Can someone please let me know what i’m doing wrong?

I get exactly the same error using Mariadb. Obviously the installer is not setting up the access properly. The temporary solution is to log into the database and fix the access but this should really be taken care of in the install. I’ll raise a bug for this (assuming Gitea has a github or similar)

There is an error in the MariaDB log when this is attempted

Aborted connection 5 to db: ‘unconnected’ user: ‘unauthenticated’ host: ‘192.168.112.3’ (This connection closed normally without authentication)

This works fine for me using mysql so I’m assuming there is a difference in the defaults between mysql and mariadb