Database setup for mariadb/mysql #69
Labels
No Label
Kind/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No Milestone
No Assignees
4 Participants
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: gitea/gitea-docusaurus#69
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The creation of the user gitea does not work on newer mariadb versions, this creates a user with "gitea" with server "%", and does not work.
For local database:
SET old_passwords=0;
CREATE USER 'gitea' IDENTIFIED BY 'gitea';
the line should be changed to:
CREATE USER 'gitea'@'localhost' IDENTIFIED BY 'gitea';
Please send a PR
Thanks for the report. I believe
%
was chosen because of the wildcard nature of the host, as we can't ensure which network address the gitea server is on. Although I've just seen the mariadb docs and they say if you leave the hostname entirely out it'll default to%
so it could be updated to that. Let me send a PR.EDIT: Oh whoops. I misread your message, my apologies. I now understand and am correcting it appropriately.
PR can be found here: https://github.com/go-gitea/gitea/pull/27232
@tkuschel
'gitea'@'localhost'
will only work for unix socket connections, but the default config of gitea uses TCP wherelocalhost
will not match as per docs, at least on Linux:I'm pretty sure this issue is invalid and
%
will work for both unix and tcp socket connections, it is a wildcard after all.Please post the relevante MariaDB changelog entry for this, if it exists. I think nothing has changed about this user creation in a long time.