Skip to content

[E] Failed to initialize ORM engine: this user requires mysql native password authentication. #3876

Closed
@brian9206

Description

@brian9206
  • Gitea version (or commit ref): 1.4
  • Git version:
  • Operating system: CentOS 7
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:

Description

MySQL version: 8.0

The server won't start up and the log shows the following error message:

[...itea/routers/init.go:60 GlobalInit()] [E] Failed to initialize ORM engine: this user requires mysql native password authentication.

This error is caused by the go-sql-driver/mysql.
It seems there is no way to set AllowNativePasswords in gitea config

Is there any workaround for this issue?

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/enhancementAn improvement of existing functionality

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions